ENH: dictionary: make virtual for on-the-fly c++

This commit is contained in:
mattijs 2011-02-16 17:21:22 +00:00
parent de564957bc
commit 24eafa1b82
2 changed files with 6 additions and 3 deletions

View File

@ -241,10 +241,13 @@ Foam::IOdictionary::IOdictionary(const IOobject& io, const dictionary& dict)
Foam::IOdictionary::IOdictionary(const IOobject& io, Istream& is) Foam::IOdictionary::IOdictionary(const IOobject& io, Istream& is)
: :
regIOobject(io), regIOobject(io)
dictionary(is)
{ {
dictionary::name() = IOobject::objectPath(); dictionary::name() = IOobject::objectPath();
// Note that we do construct the dictionary null and read in afterwards
// so that if there is some fancy massaging due to a functionEntry in
// the dictionary at least the type information is already complete.
is >> *this;
} }

View File

@ -239,7 +239,7 @@ public:
//- Destructor //- Destructor
~dictionary(); virtual ~dictionary();
// Member functions // Member functions