diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-28 18:01:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-29 12:14:22 +0200 |
commit | e593b623dad9456d3452c4c537479596bcd0b00b (patch) | |
tree | d9d21031cdd75df25749de8c6ae5b9c0afb1c196 /desktop | |
parent | a612d738a8c909e18ed89675432ca42b376ef624 (diff) |
loplugin:stringloop in various
Change-Id: Ic2436c6d94729211cd5bc72fee18af228381e4a3
Reviewed-on: https://gerrit.libreoffice.org/58250
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/deployment/gui/dp_gui_extlistbox.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx index 5df9f5574093..e8442a20f8a1 100644 --- a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx +++ b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx @@ -140,14 +140,14 @@ void Entry_Impl::checkDependencies() deployment::DependencyException depExc; if ( e.Cause >>= depExc ) { - OUString aMissingDep( DpResId( RID_STR_ERROR_MISSING_DEPENDENCIES ) ); + OUStringBuffer aMissingDep( DpResId( RID_STR_ERROR_MISSING_DEPENDENCIES ) ); for ( sal_Int32 i = 0; i < depExc.UnsatisfiedDependencies.getLength(); ++i ) { - aMissingDep += "\n"; - aMissingDep += dp_misc::Dependencies::getErrorText( depExc.UnsatisfiedDependencies[i]); + aMissingDep.append("\n"); + aMissingDep.append(dp_misc::Dependencies::getErrorText( depExc.UnsatisfiedDependencies[i])); } - aMissingDep += "\n"; - m_sErrorText = aMissingDep; + aMissingDep.append("\n"); + m_sErrorText = aMissingDep.makeStringAndClear(); m_bMissingDeps = true; } } |