From beef95c497c46c738deecc1288cf3bb1959154d2 Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 11 Nov 2015 12:49:51 +0000 Subject: [PATCH] BUG: dictionary: topDict function --- src/OpenFOAM/db/dictionary/dictionary.C | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/OpenFOAM/db/dictionary/dictionary.C b/src/OpenFOAM/db/dictionary/dictionary.C index d8d791a21d..3ca3d5e21a 100644 --- a/src/OpenFOAM/db/dictionary/dictionary.C +++ b/src/OpenFOAM/db/dictionary/dictionary.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -221,9 +221,7 @@ Foam::autoPtr Foam::dictionary::clone() const // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // Foam::dictionary::~dictionary() -{ - // cerr<< "~dictionary() " << name() << " " << long(this) << std::endl; -} +{} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // @@ -238,7 +236,7 @@ const Foam::dictionary& Foam::dictionary::topDict() const } else { - return p; + return *this; } }