summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-08-29 13:00:33 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-08-29 16:57:07 +0200
commitcaabdbc6d2272a7549ad3761b29f23c5947ff9b2 (patch)
tree22b7df907402453caefd5d5385671860bf0a6919
parent098df79fe179ebccafaaab0418505b32af31e1e8 (diff)
Unuseful temporary variable
Change-Id: I926a69fa32b284475927e21f98f49330dde6d5b0
-rw-r--r--sw/source/core/edit/editsh.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/edit/editsh.cxx b/sw/source/core/edit/editsh.cxx
index 4fb3dba9c914..8950e62a78d1 100644
--- a/sw/source/core/edit/editsh.cxx
+++ b/sw/source/core/edit/editsh.cxx
@@ -126,8 +126,7 @@ void SwEditShell::Insert2(const OUString &rStr, const bool bForceExpandHints )
if ( rNode.IsTextNode() )
{
SwIndex& rIdx = pTmpCrsr->GetPoint()->nContent;
- sal_Int32 nPos = rIdx.GetIndex();
- sal_Int32 nPrevPos = nPos;
+ sal_Int32 nPrevPos = rIdx.GetIndex();
if ( nPrevPos )
--nPrevPos;