elide some temporary OUStrings
where we are calling append(OUString::createFromAscii( and we can rather call appendAscii Change-Id: I2366b518fe6d8d2484b00bb831cb79fb49bc0293 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149043 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
657743ec52
commit
f5bfc127dd
5 changed files with 6 additions and 6 deletions
|
@ -99,7 +99,7 @@ void copyProperties(const Reference<XPropertySet>& _rxSource,
|
|||
}
|
||||
else
|
||||
{
|
||||
aBuffer.append( OUString::createFromAscii(typeid( *_rxDest ).name()) );
|
||||
aBuffer.appendAscii( typeid( *_rxDest ).name() );
|
||||
}
|
||||
aBuffer.append( "' implementation).\n" );
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ namespace
|
|||
ostr.fill('0');
|
||||
ostr.width(9);
|
||||
ostr << rTime.NanoSeconds;
|
||||
sInfo.append(OUString::createFromAscii(ostr.str().c_str()));
|
||||
sInfo.appendAscii(ostr.str().c_str());
|
||||
}
|
||||
|
||||
return sInfo.makeStringAndClear();
|
||||
|
|
|
@ -1129,7 +1129,7 @@ void Converter::convertDuration(OUStringBuffer& rBuffer,
|
|||
ostr.fill('0');
|
||||
ostr.width(9);
|
||||
ostr << rDuration.NanoSeconds;
|
||||
rBuffer.append(OUString::createFromAscii(ostr.str().c_str()));
|
||||
rBuffer.appendAscii(ostr.str().c_str());
|
||||
}
|
||||
rBuffer.append('S');
|
||||
}
|
||||
|
@ -1510,7 +1510,7 @@ static void convertTime(
|
|||
ostr.fill('0');
|
||||
ostr.width(9);
|
||||
ostr << i_rDateTime.NanoSeconds;
|
||||
i_rBuffer.append(OUString::createFromAscii(ostr.str().c_str()));
|
||||
i_rBuffer.appendAscii(ostr.str().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -299,7 +299,7 @@ OUString toISO8601(const css::util::DateTime& rDateTime)
|
|||
ostr.fill('0');
|
||||
ostr.width(9);
|
||||
ostr << rDateTime.NanoSeconds;
|
||||
rBuffer.append(OUString::createFromAscii(ostr.str().c_str()));
|
||||
rBuffer.appendAscii(ostr.str().c_str());
|
||||
}
|
||||
}
|
||||
return rBuffer.makeStringAndClear();
|
||||
|
|
|
@ -156,7 +156,7 @@ OUString SecurityEnvironment_NssImpl::getSecurityEnvironmentInformation()
|
|||
OUStringBuffer buff;
|
||||
for (auto& slot : m_Slots)
|
||||
{
|
||||
buff.append(OUString::createFromAscii(PK11_GetTokenName(slot)));
|
||||
buff.appendAscii(PK11_GetTokenName(slot));
|
||||
buff.append("\n");
|
||||
}
|
||||
return buff.makeStringAndClear();
|
||||
|
|
Loading…
Reference in a new issue