diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-11-10 14:41:22 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-11-10 14:41:22 +0100 |
commit | 897bf27a959620ee313f6feb9ee999c5313aabce (patch) | |
tree | 526f2bd377d78284f7e7cdbf791c3a7e96e6f2ad | |
parent | fd2d0bc88fe05b53f45658d82f29c02511ea90fa (diff) |
cppcheck: reduce scope
Change-Id: I06c97b99a55d8b291ea31e6a751ced01b0b80e23
-rw-r--r-- | framework/source/fwe/xml/saxnamespacefilter.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/framework/source/fwe/xml/saxnamespacefilter.cxx b/framework/source/fwe/xml/saxnamespacefilter.cxx index b7ce4cfcd876..bf97c5066447 100644 --- a/framework/source/fwe/xml/saxnamespacefilter.cxx +++ b/framework/source/fwe/xml/saxnamespacefilter.cxx @@ -171,10 +171,9 @@ void SAL_CALL SaxNamespaceFilter::setDocumentLocator( OUString SaxNamespaceFilter::getErrorLineString() { - char buffer[32]; - if ( m_xLocator.is() ) { + char buffer[32]; snprintf( buffer, sizeof(buffer), "Line: %ld - ", static_cast<long>( m_xLocator->getLineNumber() )); return OUString::createFromAscii( buffer ); } |