Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
c49e93d4
Commit
c49e93d4
authored
Oct 13, 2008
by
mattijs
Browse files
unecessary shrink
parent
682c247e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/containers/Lists/DynamicList/DynamicListI.H
View file @
c49e93d4
...
...
@@ -79,8 +79,9 @@ inline void Foam::DynamicList<T, SizeInc, SizeMult, SizeDiv>::setSize
const
label
s
)
{
if
(
s
<
List
<
T
>::
size
())
if
(
s
<
=
List
<
T
>::
size
())
{
// shrink addressable size, leave allocated size untouched
List
<
T
>::
size
()
=
s
;
}
else
...
...
@@ -100,8 +101,9 @@ inline void Foam::DynamicList<T, SizeInc, SizeMult, SizeDiv>::setSize
const
T
&
t
)
{
if
(
s
<
List
<
T
>::
size
())
if
(
s
<
=
List
<
T
>::
size
())
{
// shrink addressable size, leave allocated size untouched
List
<
T
>::
size
()
=
s
;
}
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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