mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Merge remote-tracking branch 'origin/topic/timw/776-using-statements'
* origin/topic/timw/776-using-statements: Remove 'using namespace std' from SerialTypes.h Remove other using statements from headers GH-776: Remove using statements added by PR 770 Includes small fixes in files that changed since the merge request was made. Also includes a few small indentation fixes.
This commit is contained in:
commit
876c803d75
147 changed files with 553 additions and 579 deletions
10
src/ID.cc
10
src/ID.cc
|
@ -45,7 +45,7 @@ ID::~ID()
|
|||
Unref(val);
|
||||
}
|
||||
|
||||
string ID::ModuleName() const
|
||||
std::string ID::ModuleName() const
|
||||
{
|
||||
return extract_module_name(name);
|
||||
}
|
||||
|
@ -214,9 +214,9 @@ void ID::MakeDeprecated(IntrusivePtr<Expr> deprecation)
|
|||
AddAttrs(make_intrusive<Attributes>(attr, IntrusivePtr{NewRef{}, Type()}, false, IsGlobal()));
|
||||
}
|
||||
|
||||
string ID::GetDeprecationWarning() const
|
||||
std::string ID::GetDeprecationWarning() const
|
||||
{
|
||||
string result;
|
||||
std::string result;
|
||||
Attr* depr_attr = FindAttr(ATTR_DEPRECATED);
|
||||
if ( depr_attr )
|
||||
{
|
||||
|
@ -541,12 +541,12 @@ void ID::AddOptionHandler(IntrusivePtr<Func> callback, int priority)
|
|||
option_handlers.emplace(priority, std::move(callback));
|
||||
}
|
||||
|
||||
vector<Func*> ID::GetOptionHandlers() const
|
||||
std::vector<Func*> ID::GetOptionHandlers() const
|
||||
{
|
||||
// multimap is sorted
|
||||
// It might be worth caching this if we expect it to be called
|
||||
// a lot...
|
||||
vector<Func*> v;
|
||||
std::vector<Func*> v;
|
||||
for ( auto& element : option_handlers )
|
||||
v.push_back(element.second.get());
|
||||
return v;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue