summaryrefslogtreecommitdiff
path: root/sw/source/core/crsr/bookmrk.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/crsr/bookmrk.cxx')
-rw-r--r--sw/source/core/crsr/bookmrk.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/crsr/bookmrk.cxx b/sw/source/core/crsr/bookmrk.cxx
index 7bf17cbf5dea..862fdb64adca 100644
--- a/sw/source/core/crsr/bookmrk.cxx
+++ b/sw/source/core/crsr/bookmrk.cxx
@@ -78,7 +78,7 @@ namespace
{
SwPaM aStartPaM(rStart);
io_pDoc->getIDocumentContentOperations().InsertString(aStartPaM, OUString(aStartMark));
- rStart.nContent--;
+ --rStart.nContent;
pField->SetMarkStartPos( rStart );
}
@@ -91,7 +91,7 @@ namespace
{
SwPaM aEndPaM(rEnd);
io_pDoc->getIDocumentContentOperations().InsertString(aEndPaM, OUString(aEndMark));
- rEnd.nContent++;
+ ++rEnd.nContent;
}
io_pDoc->GetIDocumentUndoRedo().EndUndo(UNDO_UI_REPLACE, NULL);
@@ -112,7 +112,7 @@ namespace
if( ch_start == aStartMark )
{
SwPaM aStart(rStart, rStart);
- aStart.End()->nContent++;
+ ++aStart.End()->nContent;
io_pDoc->getIDocumentContentOperations().DeleteRange(aStart);
}
@@ -125,7 +125,7 @@ namespace
if ( ch_end == aEndMark )
{
SwPaM aEnd(rEnd, rEnd);
- aEnd.Start()->nContent--;
+ --aEnd.Start()->nContent;
io_pDoc->getIDocumentContentOperations().DeleteRange(aEnd);
}