sw/source/core/txtnode/ndtxt.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 421d4bc13017988f1a1311a92b93177cf2bbc306 Author: Julien Nabet <[email protected]> Date: Tue Dec 5 22:24:34 2017 +0100 Replace list by vector in ndtxt (sw) Change-Id: Ie12a39dce136c78e786f805740d855a5d191082e Reviewed-on: https://gerrit.libreoffice.org/45913 Tested-by: Jenkins <[email protected]> Reviewed-by: Julien Nabet <[email protected]> diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx index 193b3a654eb7..6df3af529232 100644 --- a/sw/source/core/txtnode/ndtxt.cxx +++ b/sw/source/core/txtnode/ndtxt.cxx @@ -1113,7 +1113,7 @@ void SwTextNode::Update( // at-char anchored flys shouldn't be moved, either. #if OSL_DEBUG_LEVEL > 0 - std::list<SwFrameFormat*> checkFormats; + std::vector<SwFrameFormat*> checkFormats; const SwFrameFormats& rFormats = *GetDoc()->GetSpzFrameFormats(); for (SwFrameFormats::const_iterator pFormat = rFormats.begin(); pFormat != rFormats.end(); ++pFormat) { @@ -1149,7 +1149,7 @@ void SwTextNode::Update( // The anchor position is exactly our insert position. rEndIdx.Assign(&aTmpIdxReg, rEndIdx.GetIndex()); #if OSL_DEBUG_LEVEL > 0 - std::list<SwFrameFormat*>::iterator checkPos = std::find( checkFormats.begin(), checkFormats.end(), pFormat ); + auto checkPos = std::find( checkFormats.begin(), checkFormats.end(), pFormat ); assert( checkPos != checkFormats.end()); checkFormats.erase( checkPos ); #endif _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
