move a function definition in names.cc for a little more clarity
This commit is contained in:
@@ -215,6 +215,16 @@ NamesPriv::Add (std::string name, Ptr<Object> object)
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
NamesPriv::Add (std::string context, std::string name, Ptr<Object> object)
|
||||
{
|
||||
if (context == "/Names")
|
||||
{
|
||||
return Add (Ptr<Object> (0, false), name, object);
|
||||
}
|
||||
return Add (FindObjectFromFullName (context), name, object);
|
||||
}
|
||||
|
||||
bool
|
||||
NamesPriv::Add (Ptr<Object> context, std::string name, Ptr<Object> object)
|
||||
{
|
||||
@@ -250,16 +260,6 @@ NamesPriv::Add (Ptr<Object> context, std::string name, Ptr<Object> object)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
NamesPriv::Add (std::string context, std::string name, Ptr<Object> object)
|
||||
{
|
||||
if (context == "/Names")
|
||||
{
|
||||
return Add (Ptr<Object> (0, false), name, object);
|
||||
}
|
||||
return Add (FindObjectFromFullName (context), name, object);
|
||||
}
|
||||
|
||||
std::string
|
||||
NamesPriv::FindShortName (Ptr<Object> object)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user