mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
GH-776: Remove using statements added by PR 770
This commit is contained in:
parent
08fbdb1418
commit
eb010290eb
4 changed files with 11 additions and 22 deletions
|
@ -13,8 +13,6 @@
|
|||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
using std::map;
|
||||
|
||||
// TODO: Anon.h may not be the right place to put these functions ...
|
||||
|
||||
enum ip_addr_anonymization_class_t {
|
||||
|
@ -51,7 +49,7 @@ public:
|
|||
bool PreserveNet(ipaddr32_t input);
|
||||
|
||||
protected:
|
||||
map<ipaddr32_t, ipaddr32_t> mapping;
|
||||
std::map<ipaddr32_t, ipaddr32_t> mapping;
|
||||
};
|
||||
|
||||
class AnonymizeIPAddr_Seq : public AnonymizeIPAddr {
|
||||
|
|
10
src/Base64.h
10
src/Base64.h
|
@ -2,8 +2,6 @@
|
|||
|
||||
#include <string>
|
||||
|
||||
using std::string;
|
||||
|
||||
class BroString;
|
||||
class Connection;
|
||||
|
||||
|
@ -15,7 +13,7 @@ public:
|
|||
// encode_base64()), encoding-errors will go to Reporter instead of
|
||||
// Weird. Usage errors go to Reporter in any case. Empty alphabet
|
||||
// indicates the default base64 alphabet.
|
||||
explicit Base64Converter(Connection* conn, const string& alphabet = "");
|
||||
explicit Base64Converter(Connection* conn, const std::string& alphabet = "");
|
||||
~Base64Converter();
|
||||
|
||||
// A note on Decode():
|
||||
|
@ -44,10 +42,10 @@ protected:
|
|||
char error_msg[256];
|
||||
|
||||
protected:
|
||||
static const string default_alphabet;
|
||||
string alphabet;
|
||||
static const std::string default_alphabet;
|
||||
std::string alphabet;
|
||||
|
||||
static int* InitBase64Table(const string& alphabet);
|
||||
static int* InitBase64Table(const std::string& alphabet);
|
||||
static int default_base64_table[256];
|
||||
char base64_group[4];
|
||||
int base64_group_next;
|
||||
|
|
|
@ -5,11 +5,6 @@
|
|||
#include <list>
|
||||
#include <string>
|
||||
|
||||
using std::list;
|
||||
using std::map;
|
||||
using std::pair;
|
||||
using std::string;
|
||||
|
||||
class Stmt;
|
||||
|
||||
/**
|
||||
|
@ -50,7 +45,7 @@ private:
|
|||
/**
|
||||
* The current, global Brofiler instance creates this list at parse-time.
|
||||
*/
|
||||
list<Stmt*> stmts;
|
||||
std::list<Stmt*> stmts;
|
||||
|
||||
/**
|
||||
* Indicates whether new statments will not be considered as part of
|
||||
|
@ -64,7 +59,7 @@ private:
|
|||
* startup time and modified at shutdown time before writing back
|
||||
* to a file.
|
||||
*/
|
||||
map<pair<string, string>, uint64_t> usage_map;
|
||||
std::map<std::pair<std::string, std::string>, uint64_t> usage_map;
|
||||
|
||||
/**
|
||||
* The character to use to delimit Brofiler output files. Default is '\t'.
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
#include <string>
|
||||
|
||||
using std::string;
|
||||
|
||||
struct ParseLocationRec;
|
||||
class Stmt;
|
||||
|
||||
|
@ -40,8 +38,8 @@ public:
|
|||
BreakCode ShouldBreak(Stmt* s);
|
||||
BreakCode ShouldBreak(double t);
|
||||
|
||||
const string& GetCondition() const { return condition; }
|
||||
bool SetCondition(const string& new_condition);
|
||||
const std::string& GetCondition() const { return condition; }
|
||||
bool SetCondition(const std::string& new_condition);
|
||||
|
||||
int GetRepeatCount() const { return repeat_count; }
|
||||
bool SetRepeatCount(int count); // implements function of ignore command in gdb
|
||||
|
@ -68,7 +66,7 @@ protected:
|
|||
int BPID;
|
||||
|
||||
char description[512];
|
||||
string function_name; // location
|
||||
std::string function_name; // location
|
||||
const char* source_filename;
|
||||
int source_line;
|
||||
|
||||
|
@ -79,5 +77,5 @@ protected:
|
|||
int repeat_count; // if positive, break after this many hits
|
||||
int hit_count; // how many times it's been hit (w/o breaking)
|
||||
|
||||
string condition; // condition to evaluate; nil for none
|
||||
std::string condition; // condition to evaluate; nil for none
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue