diff options
author | Muhammet Kara <muhammet.kara@pardus.org.tr> | 2016-07-01 14:07:52 +0300 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-07-03 15:46:58 +0000 |
commit | d5784e91e9cd83336dc16392fd65cb11c5373c9c (patch) | |
tree | d4113a679a56f6352b3ec49ad0cbe636fe9c3038 /basic/qa | |
parent | bad68fd0b4a40062990c96a1a3f8d7a31bd84180 (diff) |
Improve readability of OUString concatanation in LibPage
, ScriptDocument
, PropBrw
, VBATest
, SbUnoClass
, SbModule
, and SbiSymPool
It is more readable and more efficient as a bonus.
See: https://goo.gl/jsVAwy:
Change-Id: I73926989345193b133e538d5aeca36f12723162c
Reviewed-on: https://gerrit.libreoffice.org/26853
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'basic/qa')
-rw-r--r-- | basic/qa/cppunit/test_vba.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/basic/qa/cppunit/test_vba.cxx b/basic/qa/cppunit/test_vba.cxx index 83d243d21dc0..7d145e832f02 100644 --- a/basic/qa/cppunit/test_vba.cxx +++ b/basic/qa/cppunit/test_vba.cxx @@ -69,8 +69,8 @@ void VBATest::testMiscVBAFunctions() for ( sal_uInt32 i=0; i<SAL_N_ELEMENTS( macroSource ); ++i ) { - OUString sMacroURL( sMacroPathURL ); - sMacroURL += OUString::createFromAscii( macroSource[ i ] ); + OUString sMacroURL = sMacroPathURL + + OUString::createFromAscii( macroSource[ i ] ); MacroSnippet myMacro; myMacro.LoadSourceFromFile( sMacroURL ); @@ -133,16 +133,16 @@ void VBATest::testMiscOLEStuff() uno::Sequence< uno::Any > aArgs(1); // path to test document - OUString sPath = m_directories.getPathFromSrc("/basic/qa/vba_tests/data/"); - sPath += "ADODBdata.xls"; + OUString sPath = m_directories.getPathFromSrc("/basic/qa/vba_tests/data/") + + "ADODBdata.xls"; sPath = sPath.replaceAll( "/", "\\" ); aArgs[ 0 ] = uno::makeAny( sPath ); for ( sal_uInt32 i=0; i<SAL_N_ELEMENTS( macroSource ); ++i ) { - OUString sMacroURL( sMacroPathURL ); - sMacroURL += OUString::createFromAscii( macroSource[ i ] ); + OUString sMacroURL = sMacroPathURL + + OUString::createFromAscii( macroSource[ i ] ); MacroSnippet myMacro; myMacro.LoadSourceFromFile( sMacroURL ); SbxVariableRef pReturn = myMacro.Run( aArgs ); |