summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-10-14 02:51:05 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-10-15 06:49:23 +0000
commitb4b7703e4335460cf48bfd6440f116359994c8ff (patch)
tree66b6ab43d6fb13d037160d7384d1a7a93d92940b /unotools
parent90d82f73b89d8a0b0b13d224dbd1a741a10a7fd9 (diff)
cppcheck:variableScope
Change-Id: I9b671637fbe0f32e695d22b74bfb40a39a9fe884 Reviewed-on: https://gerrit.libreoffice.org/19364 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/xmlaccelcfg.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/unotools/source/config/xmlaccelcfg.cxx b/unotools/source/config/xmlaccelcfg.cxx
index 8ee8953a0345..f84d93d5f24d 100644
--- a/unotools/source/config/xmlaccelcfg.cxx
+++ b/unotools/source/config/xmlaccelcfg.cxx
@@ -63,10 +63,9 @@ throw( SAXException, RuntimeException, std::exception )
OUString OReadAccelatorDocumentHandler::getErrorLineString()
{
- char buffer[32];
-
if ( m_xLocator.is() )
{
+ char buffer[32];
return OUString::createFromAscii( buffer );
}
else