From caabdbc6d2272a7549ad3761b29f23c5947ff9b2 Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Sat, 29 Aug 2015 13:00:33 +0200 Subject: Unuseful temporary variable Change-Id: I926a69fa32b284475927e21f98f49330dde6d5b0 --- sw/source/core/edit/editsh.cxx | 3 +-- 1 file changed, 1 insertion(+), 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; -- cgit