summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornadith <nadmalinda@gmail.com>2016-07-14 23:54:26 +0530
committerNoel Grandin <noelgrandin@gmail.com>2016-07-15 08:38:57 +0000
commite7d709cb2487dc67179812afa5c36d111d9400be (patch)
tree3a3fe7be90b507c8dd84dbf1401cd5c7bbc645a9
parentbfe6c2dedbac4caa8a080a7a7b2d783ae5d5d813 (diff)
tdf#100726: Improve readability of OUString concatenations in basctl module
Change-Id: Iad8e3a2b74062640660c0ea8121dc6a5d043c080 Reviewed-on: https://gerrit.libreoffice.org/27228 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r--basctl/source/basicide/baside2b.cxx6
-rw-r--r--basctl/source/basicide/moduldl2.cxx8
2 files changed, 4 insertions, 10 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index b33e9bd4a771..04cb25872e81 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -366,8 +366,7 @@ void EditorWindow::RequestHelp( const HelpEvent& rHEvt )
aHelpText = pVar->GetName();
if ( aHelpText.isEmpty() ) // name is not copied with the passed parameters
aHelpText = aWord;
- aHelpText += "=";
- aHelpText += pVar->GetOUString();
+ aHelpText += "=" + pVar->GetOUString();
}
}
if ( !aHelpText.isEmpty() )
@@ -1737,8 +1736,7 @@ void WatchWindow::AddWatch( const OUString& rVName )
lcl_SeparateNameAndIndex( rVName, aVar, aIndex );
WatchItem* pWatchItem = new WatchItem(aVar);
- OUString aWatchStr_( aVar );
- aWatchStr_ += "\t\t";
+ OUString aWatchStr_ = aVar + "\t\t";
SvTreeListEntry* pNewEntry = aTreeListBox->InsertEntry( aWatchStr_, nullptr, true );
pNewEntry->SetUserData( pWatchItem );
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx
index 1e22ab0445d1..de29b82b3c8b 100644
--- a/basctl/source/basicide/moduldl2.cxx
+++ b/basctl/source/basicide/moduldl2.cxx
@@ -893,9 +893,7 @@ void LibPage::InsertLib()
( xDlgLibContainer.is() && xDlgLibContainer->hasByName( aLibName ) && xDlgLibContainer->isLibraryReadOnly( aLibName ) && !xDlgLibContainer->isLibraryLink( aLibName ) ) )
{
OUString aErrStr( IDE_RESSTR(RID_STR_REPLACELIB) );
- aErrStr = aErrStr.replaceAll("XX", aLibName);
- aErrStr += "\n";
- aErrStr += IDE_RESSTR(RID_STR_LIBISREADONLY);
+ aErrStr = aErrStr.replaceAll("XX", aLibName) + "\n" + IDE_RESSTR(RID_STR_LIBISREADONLY);
ScopedVclPtrInstance<MessageDialog>::Create(this, aErrStr)->Execute();
continue;
}
@@ -910,9 +908,7 @@ void LibPage::InsertLib()
aErrStr = IDE_RESSTR(RID_STR_REFNOTPOSSIBLE);
else
aErrStr = IDE_RESSTR(RID_STR_IMPORTNOTPOSSIBLE);
- aErrStr = aErrStr.replaceAll("XX", aLibName);
- aErrStr += "\n" ;
- aErrStr += IDE_RESSTR(RID_STR_SBXNAMEALLREADYUSED);
+ aErrStr = aErrStr.replaceAll("XX", aLibName) + "\n" +IDE_RESSTR(RID_STR_SBXNAMEALLREADYUSED);
ScopedVclPtrInstance<MessageDialog>::Create(this, aErrStr)->Execute();
continue;
}