Kaydet (Commit) 421d4bc1 authored tarafından Julien Nabet's avatar Julien Nabet

Replace list by vector in ndtxt (sw)

Change-Id: Ie12a39dce136c78e786f805740d855a5d191082e
Reviewed-on: https://gerrit.libreoffice.org/45913Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst 2488ea55
...@@ -1113,7 +1113,7 @@ void SwTextNode::Update( ...@@ -1113,7 +1113,7 @@ void SwTextNode::Update(
// at-char anchored flys shouldn't be moved, either. // at-char anchored flys shouldn't be moved, either.
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
std::list<SwFrameFormat*> checkFormats; std::vector<SwFrameFormat*> checkFormats;
const SwFrameFormats& rFormats = *GetDoc()->GetSpzFrameFormats(); const SwFrameFormats& rFormats = *GetDoc()->GetSpzFrameFormats();
for (SwFrameFormats::const_iterator pFormat = rFormats.begin(); pFormat != rFormats.end(); ++pFormat) for (SwFrameFormats::const_iterator pFormat = rFormats.begin(); pFormat != rFormats.end(); ++pFormat)
{ {
...@@ -1149,7 +1149,7 @@ void SwTextNode::Update( ...@@ -1149,7 +1149,7 @@ void SwTextNode::Update(
// The anchor position is exactly our insert position. // The anchor position is exactly our insert position.
rEndIdx.Assign(&aTmpIdxReg, rEndIdx.GetIndex()); rEndIdx.Assign(&aTmpIdxReg, rEndIdx.GetIndex());
#if OSL_DEBUG_LEVEL > 0 #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()); assert( checkPos != checkFormats.end());
checkFormats.erase( checkPos ); checkFormats.erase( checkPos );
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment