Replace char[] by OUStringBuffer/OUString

Change-Id: I233d067b3fcb93c80ab3c458b19b4f60680fe84b
This commit is contained in:
Julien Nabet
2013-09-14 01:22:55 +02:00
parent 83ea64d4cf
commit c4f5b1745c

View File

@@ -587,12 +587,13 @@ OUString OReadImagesDocumentHandler::getErrorLineString()
{
ResetableGuard aGuard( m_aLock );
char buffer[32];
if ( m_xLocator.is() )
{
snprintf( buffer, sizeof(buffer), "Line: %ld - ", static_cast<long>( m_xLocator->getLineNumber() ));
return OUString::createFromAscii( buffer );
OUStringBuffer buffer("Line: ");
buffer.append(m_xLocator->getLineNumber());
buffer.append(" - ");
return buffer.makeStringAndClear();
}
else
return OUString();