[Libreoffice-commits] core.git: vcl/source
Rodolfo Ribeiro Gomes
rodolforg at gmail.com
Mon May 20 11:47:21 PDT 2013
vcl/source/gdi/impimagetree.cxx | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
New commits:
commit e673655ba784bd2993fb4e364c042fbc0e938d2d
Author: Rodolfo Ribeiro Gomes <rodolforg at gmail.com>
Date: Mon May 13 21:42:31 2013 -0300
Make some uses of OUStrings a little more readable
Change-Id: I2e85fa39abbff86918464aae67b4b9eacd3bf7a4
Signed-off-by: Rodolfo Ribeiro Gomes <rodolforg at gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/3949
Reviewed-by: LuboÅ¡ LuÅák <l.lunak at suse.cz>
Tested-by: LuboÅ¡ LuÅák <l.lunak at suse.cz>
diff --git a/vcl/source/gdi/impimagetree.cxx b/vcl/source/gdi/impimagetree.cxx
index a2cab8b..6e449de 100644
--- a/vcl/source/gdi/impimagetree.cxx
+++ b/vcl/source/gdi/impimagetree.cxx
@@ -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(
More information about the Libreoffice-commits
mailing list