diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-11-23 16:21:57 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-11-24 14:46:56 +0100 |
commit | 0215305c13b081ab929997cbd51e829f66425afb (patch) | |
tree | 945e781bf4d272e96a99cebd65d5e42644453401 /sw | |
parent | 5294e6313c17bc83e2ae9442a2ce2fff9ae53625 (diff) |
Prefer += and -=
Change-Id: I0b1ba2e7c8287340eebec7eb9b3e1aea8945d82f
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/docnode/ndcopy.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/docnode/ndcopy.cxx b/sw/source/core/docnode/ndcopy.cxx index b08e4b595005..20796cc9ae01 100644 --- a/sw/source/core/docnode/ndcopy.cxx +++ b/sw/source/core/docnode/ndcopy.cxx @@ -114,10 +114,10 @@ namespace { // dann nur den Content anpassen if( nCntntPos > rOrigStt.nContent.GetIndex() ) - nCntntPos = nCntntPos - rOrigStt.nContent.GetIndex(); + nCntntPos -= rOrigStt.nContent.GetIndex(); else nCntntPos = 0; - nCntntPos = nCntntPos + rCpyStt.nContent.GetIndex(); + nCntntPos += rCpyStt.nContent.GetIndex(); } rChgPos.nContent.Assign( rChgPos.nNode.GetNode().GetCntntNode(), nCntntPos ); } |