mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
decluttered code by removing "std::" - no semantic changes
(also some whitespace fixes)
This commit is contained in:
parent
bbe5ab39f6
commit
72413f315c
18 changed files with 420 additions and 397 deletions
|
@ -9,6 +9,8 @@
|
|||
|
||||
namespace zeek::detail {
|
||||
|
||||
using namespace std;
|
||||
|
||||
void CPPCompile::StartBlock()
|
||||
{
|
||||
++block_level;
|
||||
|
@ -21,15 +23,15 @@ void CPPCompile::EndBlock(bool needs_semi)
|
|||
--block_level;
|
||||
}
|
||||
|
||||
std::string CPPCompile::GenString(const char* b, int len) const
|
||||
string CPPCompile::GenString(const char* b, int len) const
|
||||
{
|
||||
return std::string("make_intrusive<StringVal>(") + Fmt(len) +
|
||||
", " + CPPEscape(b, len) + ")";
|
||||
return string("make_intrusive<StringVal>(") + Fmt(len) + ", " +
|
||||
CPPEscape(b, len) + ")";
|
||||
}
|
||||
|
||||
std::string CPPCompile::CPPEscape(const char* b, int len) const
|
||||
string CPPCompile::CPPEscape(const char* b, int len) const
|
||||
{
|
||||
std::string res = "\"";
|
||||
string res = "\"";
|
||||
|
||||
for ( int i = 0; i < len; ++i )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue