diff options
-rw-r--r-- | sw/source/core/undo/undel.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/undo/unins.cxx | 1 | ||||
-rw-r--r-- | sw/source/core/undo/unovwr.cxx | 3 |
3 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/core/undo/undel.cxx b/sw/source/core/undo/undel.cxx index 34e9fcb66729..766ed61c72f1 100644 --- a/sw/source/core/undo/undel.cxx +++ b/sw/source/core/undo/undel.cxx @@ -789,6 +789,7 @@ void SwUndoDelete::UndoImpl(::sw::UndoRedoContext & rContext) OUString const ins( pTxtNd->InsertText(*pEndStr, aPos.nContent, IDocumentContentOperations::INS_NOHINTEXPAND) ); assert(ins.getLength() == pEndStr->Len()); // must succeed + (void) ins; // METADATA: restore pTxtNd->RestoreMetadata(m_pMetadataUndoEnd); } @@ -883,6 +884,7 @@ void SwUndoDelete::UndoImpl(::sw::UndoRedoContext & rContext) OUString const ins( pTxtNd->InsertText(*pSttStr, aPos.nContent, IDocumentContentOperations::INS_NOHINTEXPAND) ); assert(ins.getLength() == pSttStr->Len()); // must succeed + (void) ins; // METADATA: restore pTxtNd->RestoreMetadata(m_pMetadataUndoStart); } diff --git a/sw/source/core/undo/unins.cxx b/sw/source/core/undo/unins.cxx index 5145aaa711f6..3f3a00e83ad2 100644 --- a/sw/source/core/undo/unins.cxx +++ b/sw/source/core/undo/unins.cxx @@ -730,6 +730,7 @@ void SwUndoReplace::Impl::UndoImpl(::sw::UndoRedoContext & rContext) { OUString const ins( pNd->InsertText( m_sOld, aIdx ) ); assert(ins.getLength() == m_sOld.getLength()); // must succeed + (void) ins; } if( pHistory ) diff --git a/sw/source/core/undo/unovwr.cxx b/sw/source/core/undo/unovwr.cxx index b7559c2e3b06..6a2fc8acc197 100644 --- a/sw/source/core/undo/unovwr.cxx +++ b/sw/source/core/undo/unovwr.cxx @@ -157,6 +157,7 @@ sal_Bool SwUndoOverwrite::CanGrouping( SwDoc* pDoc, SwPosition& rPos, OUString const ins( pDelTxtNd->InsertText(OUString(cIns), rPos.nContent, IDocumentContentOperations::INS_EMPTYEXPAND) ); assert(ins.getLength() == 1); // check in SwDoc::Overwrite => cannot fail + (void) ins; aInsStr.Insert( cIns ); if( !bInsChar ) @@ -210,6 +211,7 @@ void SwUndoOverwrite::UndoImpl(::sw::UndoRedoContext & rContext) OUString aTmpStr(aDelStr.GetChar(n)); OUString const ins( pTxtNd->InsertText(aTmpStr, rIdx) ); assert(ins.getLength() == 1); // cannot fail + (void) ins; rIdx -= 2; pTxtNd->EraseText( rIdx, 1 ); rIdx += 2; @@ -282,6 +284,7 @@ void SwUndoOverwrite::RedoImpl(::sw::UndoRedoContext & rContext) pTxtNd->InsertText( OUString(aInsStr.GetChar(n)), rIdx, IDocumentContentOperations::INS_EMPTYEXPAND) ); assert(ins.getLength() == 1); // cannot fail + (void) ins; if( n < aDelStr.Len() ) { rIdx -= 2; |