[Libreoffice-commits] core.git: basctl/source sw/source
Shubham Verma
lifemeansmore008 at gmail.com
Thu Feb 22 12:57:24 UTC 2018
basctl/source/basicide/basicbox.cxx | 3 +--
sw/source/ui/config/mailconfigpage.cxx | 6 +++---
2 files changed, 4 insertions(+), 5 deletions(-)
New commits:
commit 0c371a6b5e6c6251d782c7a8ecbe0ab32c7812ac
Author: Shubham Verma <lifemeansmore008 at gmail.com>
Date: Sat Feb 17 16:52:15 2018 +0530
tdf#112689 : Replace chained O(U)StringBuffer::append() with operator+
Change-Id: I119d33b171da7024daab5c4ca4488ceb495eab2f
Reviewed-on: https://gerrit.libreoffice.org/49898
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Muhammet Kara <muhammet.kara at pardus.org.tr>
diff --git a/basctl/source/basicide/basicbox.cxx b/basctl/source/basicide/basicbox.cxx
index 3efa5d01a8b6..01238926670f 100644
--- a/basctl/source/basicide/basicbox.cxx
+++ b/basctl/source/basicide/basicbox.cxx
@@ -408,8 +408,7 @@ void LanguageBox::FillBox()
OUString sLanguage = SvtLanguageTable::GetLanguageString( eLangType );
if ( bIsDefault )
{
- sLanguage += " ";
- sLanguage += m_sDefaultLanguageStr;
+ sLanguage += " " + m_sDefaultLanguageStr;
}
sal_Int32 nPos = InsertEntry( sLanguage );
SetEntryData( nPos, new LanguageEntry( pLocale[i], bIsDefault ) );
diff --git a/sw/source/ui/config/mailconfigpage.cxx b/sw/source/ui/config/mailconfigpage.cxx
index 3e5b043812a4..c7509d5f9d71 100644
--- a/sw/source/ui/config/mailconfigpage.cxx
+++ b/sw/source/ui/config/mailconfigpage.cxx
@@ -383,10 +383,10 @@ void SwTestAccountSettingsDialog::Test()
if (!bIsServer || !bIsLoggedIn)
{
- OUStringBuffer aErrorMessage(m_sErrorServer);
+ OUString aErrorMessage(m_sErrorServer);
if (!sException.isEmpty())
- aErrorMessage.append("\n--\n").append(sException);
- m_pErrorsED->SetText(aErrorMessage.makeStringAndClear());
+ aErrorMessage += "\n--\n" + sException;
+ m_pErrorsED->SetText(aErrorMessage);
}
}
More information about the Libreoffice-commits
mailing list