diff options
author | Rodolfo Ribeiro Gomes <rodolforg@gmail.com> | 2013-05-13 21:42:31 -0300 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-05-20 18:47:03 +0000 |
commit | e673655ba784bd2993fb4e364c042fbc0e938d2d (patch) | |
tree | 23f67567e58e6196d9e28c30caa693de89196f18 /vcl | |
parent | a53efad8dea0b0d78a5ff2b84aa2f09a4c178fd6 (diff) |
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>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/impimagetree.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/vcl/source/gdi/impimagetree.cxx b/vcl/source/gdi/impimagetree.cxx index a2cab8b4ad9b..6e449deb1a9a 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( |