[Libreoffice-commits] core.git: tools/source
Sedat Ak
sedat.ak.bm at gmail.com
Sun Nov 29 06:36:36 PST 2015
tools/source/generic/config.cxx | 22 +++-------------------
1 file changed, 3 insertions(+), 19 deletions(-)
New commits:
commit 1c8e67a9d163e72916d33b5d16211965c9655e23
Author: Sedat Ak <sedat.ak.bm at gmail.com>
Date: Sun Nov 29 01:23:50 2015 +0200
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 at yahoo.fr>
Tested-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/tools/source/generic/config.cxx b/tools/source/generic/config.cxx
index f7d403b..23dead7 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
More information about the Libreoffice-commits
mailing list