Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
be6255f1
Commit
be6255f1
authored
Jan 04, 2013
by
andy
Browse files
ENH: Refactored to avoid compiler warning
parent
cbbc796b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/containers/Dictionaries/Dictionary/Dictionary.C
View file @
be6255f1
...
...
@@ -46,8 +46,9 @@ Foam::Dictionary<T>::Dictionary(const Dictionary& dict)
template
<
class
T
>
bool
Foam
::
Dictionary
<
T
>::
erase
(
const
word
&
keyword
)
{
T
*
tPtr
;
if
(
tPtr
=
this
->
remove
(
keyword
))
T
*
tPtr
=
this
->
remove
(
keyword
);
if
(
tPtr
)
{
delete
tPtr
;
return
true
;
...
...
@@ -59,6 +60,4 @@ bool Foam::Dictionary<T>::erase(const word& keyword)
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* //
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment