[Libreoffice-commits] core.git: framework/source
Julien Nabet
serval2412 at yahoo.fr
Sun Nov 10 05:42:25 PST 2013
framework/source/fwe/xml/saxnamespacefilter.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 897bf27a959620ee313f6feb9ee999c5313aabce
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Nov 10 14:41:22 2013 +0100
cppcheck: reduce scope
Change-Id: I06c97b99a55d8b291ea31e6a751ced01b0b80e23
diff --git a/framework/source/fwe/xml/saxnamespacefilter.cxx b/framework/source/fwe/xml/saxnamespacefilter.cxx
index b7ce4cf..bf97c50 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 );
}
More information about the Libreoffice-commits
mailing list