diff --git a/applications/test/dictionary/testDict b/applications/test/dictionary/testDict index 08c325bd4c7d0716014f8d199d84bbeed74f7a36..42a473a52b2647c684e89220670b25ab2cecfb62 100644 --- a/applications/test/dictionary/testDict +++ b/applications/test/dictionary/testDict @@ -71,7 +71,7 @@ boundaryField } // this should have no effect - //#remove $inactive + #remove inactive inlet_7 { $active } #inputMode overwrite @@ -105,9 +105,9 @@ baz // this should work -//#remove active +#remove active // this should work too -//#remove ( bar baz ) +#remove ( bar baz ) // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/OpenFOAM/db/dictionary/functionEntries/removeEntry/removeEntry.C b/src/OpenFOAM/db/dictionary/functionEntries/removeEntry/removeEntry.C index 34154cce481dd93c72b7ba02e55a513df07c18ae..78facd8e231a33e9d77432a807d66f6899dd5bc7 100644 --- a/src/OpenFOAM/db/dictionary/functionEntries/removeEntry/removeEntry.C +++ b/src/OpenFOAM/db/dictionary/functionEntries/removeEntry/removeEntry.C @@ -65,8 +65,8 @@ bool Foam::functionEntries::removeEntry::execute Istream& is ) { - wordList dictKeys = parentDict.toc(); - wordReList patterns(is); + wordList dictKeys = parentDict.toc(); + wordReList patterns = readList<wordRe>(is); labelList indices = findStrings(patterns, dictKeys);