summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSedat Ak <sedat.ak.bm@gmail.com>2015-11-29 01:23:50 +0200
committerJulien Nabet <serval2412@yahoo.fr>2015-11-29 14:36:04 +0000
commit1c8e67a9d163e72916d33b5d16211965c9655e23 (patch)
treee02dc5d51e504fdbeab430d83cd9b3795fd350ee /tools
parent70a11143ada618a37c2bd5c0c27947a834bc13bb (diff)
tdf#57950 Replace chained O(U)StringBuffer::append() with operator+
Change-Id: I373afdd529b403ee2aa314ee5380fb4667717a3f Reviewed-on: https://gerrit.libreoffice.org/20265 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/config.cxx22
1 files changed, 3 insertions, 19 deletions
diff --git a/tools/source/generic/config.cxx b/tools/source/generic/config.cxx
index f7d403b984e3..23dead7e935a 100644
--- a/tools/source/generic/config.cxx
+++ b/tools/source/generic/config.cxx
@@ -946,11 +946,7 @@ void Config::DeleteKey(const OString& rKey)
sal_uInt16 Config::GetKeyCount() const
{
#ifdef DBG_UTIL
- OStringBuffer aTraceStr("Config::GetKeyCount()");
- aTraceStr.append(" from ");
- aTraceStr.append(GetGroup());
- aTraceStr.append(" in ");
- aTraceStr.append(OUStringToOString(maFileName, RTL_TEXTENCODING_UTF8));
+ OString aTraceStr("Config::GetKeyCount() from " + GetGroup() + " in " + OUStringToOString(maFileName, RTL_TEXTENCODING_UTF8));
OSL_TRACE("%s", aTraceStr.getStr());
#endif
@@ -979,13 +975,7 @@ sal_uInt16 Config::GetKeyCount() const
OString Config::GetKeyName(sal_uInt16 nKey) const
{
#ifdef DBG_UTIL
- OStringBuffer aTraceStr("Config::GetKeyName( ");
- aTraceStr.append(static_cast<sal_Int32>(nKey));
- aTraceStr.append(" ) from ");
- aTraceStr.append(GetGroup());
- aTraceStr.append(" in ");
- aTraceStr.append(OUStringToOString(
- maFileName, RTL_TEXTENCODING_UTF8));
+ OString aTraceStr("Config::GetKeyName( " + OString::number(static_cast<sal_Int32>(nKey)) + " ) from " + GetGroup() + " in " + OUStringToOString(maFileName, RTL_TEXTENCODING_UTF8));
OSL_TRACE("%s", aTraceStr.getStr());
#endif
@@ -1013,13 +1003,7 @@ OString Config::GetKeyName(sal_uInt16 nKey) const
OString Config::ReadKey(sal_uInt16 nKey) const
{
#ifdef DBG_UTIL
- OStringBuffer aTraceStr("Config::ReadKey( ");
- aTraceStr.append(static_cast<sal_Int32>(nKey));
- aTraceStr.append(" ) from ");
- aTraceStr.append(GetGroup());
- aTraceStr.append(" in ");
- aTraceStr.append(OUStringToOString(maFileName,
- RTL_TEXTENCODING_UTF8));
+ OString aTraceStr("Config::ReadKey( " + OString::number(static_cast<sal_Int32>(nKey)) + " ) from " + GetGroup() + " in " + OUStringToOString(maFileName, RTL_TEXTENCODING_UTF8));
OSL_TRACE("%s", aTraceStr.getStr());
#endif