mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Remove 'using namespace std' from SerialTypes.h
This unfortunately cuases a ton of flow-down changes because a lot of other code was depending on that definition existing. This has a fairly large chance to break builds of external plugins, considering how many internal ones it broke.
This commit is contained in:
parent
a525f9532e
commit
d53c1454c0
119 changed files with 402 additions and 383 deletions
|
@ -35,9 +35,9 @@ bool Foo::DoInit(const ReaderInfo& info, int num_fields, const Field* const* fie
|
|||
return true;
|
||||
}
|
||||
|
||||
string Foo::RandomString(const int len)
|
||||
std::string Foo::RandomString(const int len)
|
||||
{
|
||||
string s(len, ' ');
|
||||
std::string s(len, ' ');
|
||||
|
||||
static const char values[] =
|
||||
"0123456789!@#$%^&*()-_=+{}[]\\|"
|
||||
|
@ -83,7 +83,7 @@ threading::Value* Foo::EntryToVal(TypeTag type, TypeTag subtype)
|
|||
|
||||
case TYPE_STRING:
|
||||
{
|
||||
string rnd = RandomString(10);
|
||||
std::string rnd = RandomString(10);
|
||||
val->val.string_val.data = copy_string(rnd.c_str());
|
||||
val->val.string_val.length = rnd.size();
|
||||
break;
|
||||
|
|
|
@ -23,7 +23,7 @@ protected:
|
|||
virtual bool DoHeartbeat(double network_time, double current_time);
|
||||
|
||||
private:
|
||||
string RandomString(const int len);
|
||||
std::string RandomString(const int len);
|
||||
threading::Value* EntryToVal(TypeTag Type, TypeTag subtype);
|
||||
threading::formatter::Ascii* ascii;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue