Changed the way in which the sub-dictionaries prepend the name of the parent to

avoid accumulation of the name during copy and clone.
This commit is contained in:
henry
2009-12-09 13:35:21 +00:00
parent e67d22f264
commit 812b8f7a94

View File

@ -122,7 +122,7 @@ Foam::dictionary::dictionary
const dictionary& dict
)
:
dictionaryName(parentDict.name() + "::" + dict.name()),
dictionaryName(dict.name()),
IDLList<entry>(dict, *this),
parent_(parentDict)
{
@ -489,7 +489,7 @@ Foam::dictionary Foam::dictionary::subOrEmptyDict
if (entryPtr == NULL)
{
return dictionary(*this, dictionary(keyword));
return dictionary(*this, dictionary(name() + "::" + keyword));
}
else
{