summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-01-12 22:26:20 +0100
committerJulien Nabet <serval2412@yahoo.fr>2014-01-12 22:26:20 +0100
commita14b4d2dfdadf25ed1fa1b75f959e8817036a86e (patch)
tree1337d21731a82a13f98914b831f0f14bc9bf7235 /sw
parentdf1005452c32482e4fa4c312b9dcb9418519f63f (diff)
cppcheck: fix some redundantAssignment
Change-Id: I9ea73bada743b195d778b17038137e9089d03404
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/access/acccell.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/access/acccell.cxx b/sw/source/core/access/acccell.cxx
index 84c334778f87..4cdf3abb834b 100644
--- a/sw/source/core/access/acccell.cxx
+++ b/sw/source/core/access/acccell.cxx
@@ -398,8 +398,7 @@ uno::Any SwAccessibleCell::getMinimumValue( )
static OUString ReplaceOneChar(OUString oldOUString, OUString replacedChar, OUString replaceStr)
{
- int iReplace = -1;
- iReplace = oldOUString.lastIndexOf(replacedChar);
+ int iReplace = oldOUString.lastIndexOf(replacedChar);
if (iReplace > -1)
{
for(;iReplace>-1;)