diff --git a/src/OpenFOAM/containers/Lists/List/List.H b/src/OpenFOAM/containers/Lists/List/List.H index d69c92aadd..0523b55b75 100644 --- a/src/OpenFOAM/containers/Lists/List/List.H +++ b/src/OpenFOAM/containers/Lists/List/List.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -162,10 +162,10 @@ public: // Edit - //- Reset size of List. + //- Alias for setSize(const label) inline void resize(const label); - //- Reset size of List and value for new elements. + //- Alias for setSize(const label, const T&) inline void resize(const label, const T&); //- Reset size of List. diff --git a/src/OpenFOAM/containers/Lists/PtrList/PtrList.H b/src/OpenFOAM/containers/Lists/PtrList/PtrList.H index 42c2b082c5..357b078dbf 100644 --- a/src/OpenFOAM/containers/Lists/PtrList/PtrList.H +++ b/src/OpenFOAM/containers/Lists/PtrList/PtrList.H @@ -173,16 +173,12 @@ public: // Edit - //- Reset size of PtrList. This can only be used to set the size - // of an empty PtrList, extend a PtrList, remove entries from - // the end of a PtrList. If the entries are non-empty they are + //- Reset size of PtrList. If extending the PtrList, new entries are + // set to NULL. If truncating the PtrList, removed entries are // deleted. void setSize(const label); - //- Reset size of PtrList. This can only be used to set the size - // of an empty PtrList, extend a PtrList, remove entries from - // the end of a PtrList. If the entries are non-empty they are - // deleted. + //- Alias for setSize(const label) inline void resize(const label); //- Clear the PtrList, i.e. set size to zero deleting all the