[Libreoffice-commits] core.git: sdext/source
Caolán McNamara
caolanm at redhat.com
Wed Nov 20 01:32:54 PST 2013
sdext/source/presenter/PresenterController.cxx | 1 -
1 file changed, 1 deletion(-)
New commits:
commit bdc7cf264a285e0f5817131fa07872c85dc4826b
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Nov 20 09:28:35 2013 +0000
cppcheck: Variable is reassigned a value before the old one has been used
Change-Id: Ifc16473c426bca2235e84b0d71291756074712bb
diff --git a/sdext/source/presenter/PresenterController.cxx b/sdext/source/presenter/PresenterController.cxx
index bf0b4c1..5730667 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));
More information about the Libreoffice-commits
mailing list