diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2012-12-29 11:39:23 -0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-01-03 18:29:11 +0100 |
commit | f6b4d0313dbaf1089254a1bfae9ccfbc3f413eb3 (patch) | |
tree | 68a060d0e5ecf95338b720482136bd4068113364 /basctl/source | |
parent | d905daa0d05010ffe938790c513e25df3301b310 (diff) |
fdo#57950: Remove chained append and simplify strings
No need to two strings here, since just destFolder is used.
Change-Id: Ie1bfd5744113764caaec11d9fb9c771f9c67e1c4
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Signed-off-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'basctl/source')
-rw-r--r-- | basctl/source/basicide/moduldl2.cxx | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx index 1fd2e476776f..d846bf32a09e 100644 --- a/basctl/source/basicide/moduldl2.cxx +++ b/basctl/source/basicide/moduldl2.cxx @@ -1314,14 +1314,12 @@ void LibPage::ExportAsPackage( const String& aLibName ) ::ucbhelper::Content sourceContent( aSourcePath, xCmdEnv, comphelper::getProcessComponentContext() ); - OUStringBuffer buf; - buf.appendAscii( "vnd.sun.star.zip://" ); - buf.append( ::rtl::Uri::encode( aPackageURL, - rtl_UriCharClassRegName, - rtl_UriEncodeIgnoreEscapes, - RTL_TEXTENCODING_UTF8 ) ); - buf.append( static_cast<sal_Unicode>('/') ); - OUString destFolder( buf.makeStringAndClear() ); + OUString destFolder = "vnd.sun.star.zip://" + + ::rtl::Uri::encode( aPackageURL, + rtl_UriCharClassRegName, + rtl_UriEncodeIgnoreEscapes, + RTL_TEXTENCODING_UTF8 ) + + "/"; if( xSFA->exists( aPackageURL ) ) xSFA->kill( aPackageURL ); |