From b4b7703e4335460cf48bfd6440f116359994c8ff Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 14 Oct 2015 02:51:05 +0200 Subject: cppcheck:variableScope Change-Id: I9b671637fbe0f32e695d22b74bfb40a39a9fe884 Reviewed-on: https://gerrit.libreoffice.org/19364 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- unotools/source/config/xmlaccelcfg.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'unotools') 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 -- cgit