Make some uses of OUStrings a little more readable

Change-Id: I2e85fa39abbff86918464aae67b4b9eacd3bf7a4
Signed-off-by: Rodolfo Ribeiro Gomes <rodolforg@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/3949
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
This commit is contained in:
Rodolfo Ribeiro Gomes 2013-05-13 21:42:31 -03:00 committed by Fridrich Strba
parent a53efad8de
commit e673655ba7

View file

@ -67,10 +67,7 @@ namespace {
OUString createPath(
OUString const & name, sal_Int32 pos, OUString const & locale)
{
OUStringBuffer b(name.copy(0, pos + 1));
b.append(locale);
b.append(name.copy(pos));
return b.makeStringAndClear();
return name.copy(0, pos + 1) + locale + name.copy(pos);
}
boost::shared_ptr< SvStream > wrapFile(osl::File & file)
@ -280,10 +277,7 @@ void ImplImageTree::resetPaths() {
rtl::Bootstrap::expandMacros(url);
INetURLObject u(url);
OSL_ASSERT(!u.HasError());
OUStringBuffer b;
b.appendAscii("images_");
b.append(m_style);
bool ok = u.Append(b.makeStringAndClear(), INetURLObject::ENCODE_ALL);
bool ok = u.Append("images_" + m_style, INetURLObject::ENCODE_ALL);
OSL_ASSERT(ok); (void) ok;
m_paths.push_back(
std::make_pair(