summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-11-20 09:28:35 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-11-20 09:32:17 +0000
commitbdc7cf264a285e0f5817131fa07872c85dc4826b (patch)
treeb66e6d65360644f151f646c78a7652133d0e0281 /sdext
parentbee6b3e6dad729263d10daf1550826871c57fe05 (diff)
cppcheck: Variable is reassigned a value before the old one has been used
Change-Id: Ifc16473c426bca2235e84b0d71291756074712bb
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/presenter/PresenterController.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/sdext/source/presenter/PresenterController.cxx b/sdext/source/presenter/PresenterController.cxx
index bf0b4c135df6..573066745d42 100644
--- a/sdext/source/presenter/PresenterController.cxx
+++ b/sdext/source/presenter/PresenterController.cxx
@@ -394,7 +394,6 @@ void PresenterController::UpdatePaneTitles (void)
sResult.append(sTemplate.copy(nIndex, nStartIndex-nIndex));
// Get the placeholder
- ++nIndex;
++nStartIndex;
const sal_Int32 nEndIndex (sTemplate.indexOf('%', nStartIndex+1));
const OUString sPlaceholder (sTemplate.copy(nStartIndex, nEndIndex-nStartIndex));