mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
updating failed conflict resolution
This commit is contained in:
@ -95,31 +95,6 @@ inline void Foam::DynamicList<T, SizeInc, SizeMult, SizeDiv>::setSize
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class T, unsigned SizeInc, unsigned SizeMult, unsigned SizeDiv>
|
|
||||||
inline void Foam::DynamicList<T, SizeInc, SizeMult, SizeDiv>::setSize
|
|
||||||
(
|
|
||||||
const label s,
|
|
||||||
const T& t
|
|
||||||
)
|
|
||||||
{
|
|
||||||
if (s <= List<T>::size())
|
|
||||||
{
|
|
||||||
// shrink addressable size, leave allocated size untouched
|
|
||||||
List<T>::size() = s;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
label nextFree = List<T>::size();
|
|
||||||
allocSize_ = s;
|
|
||||||
List<T>::setSize(allocSize_, t);
|
|
||||||
List<T>::size() = nextFree;
|
|
||||||
=======
|
|
||||||
>>>>>>> olesenm:src/OpenFOAM/containers/Lists/DynamicList/DynamicListI.H
|
|
||||||
}
|
|
||||||
List<T>::size(nextFree);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
template<class T, unsigned SizeInc, unsigned SizeMult, unsigned SizeDiv>
|
template<class T, unsigned SizeInc, unsigned SizeMult, unsigned SizeDiv>
|
||||||
inline void Foam::DynamicList<T, SizeInc, SizeMult, SizeDiv>::clear()
|
inline void Foam::DynamicList<T, SizeInc, SizeMult, SizeDiv>::clear()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user