summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-17 22:19:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-17 22:19:41 +0100
commit2b75644c4bf583ec7051175ff60b135700391642 (patch)
tree143b3f9162d205357d7a70cfcc898a9fcea2b6dd /sfx2
parentcc9aeefcc0f4ac08176156e52de2885675efedd1 (diff)
ByteString->rtl::OStringBuffer
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/bindings.cxx64
1 files changed, 36 insertions, 28 deletions
diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx
index afdb2764aa8a..91568362a88f 100644
--- a/sfx2/source/control/bindings.cxx
+++ b/sfx2/source/control/bindings.cxx
@@ -1756,20 +1756,24 @@ sal_uInt16 SfxBindings::EnterRegistrations(const char *pFile, int nLine)
(void)nLine;
DBG_MEMTEST();
#ifdef DBG_UTIL
- ByteString aMsg;
- aMsg.Fill( Min(nRegLevel, sal_uInt16(8) ) );
- aMsg += "this = ";
- aMsg += ByteString::CreateFromInt32((long)this);
- aMsg += " Level = ";
- aMsg += ByteString::CreateFromInt32(nRegLevel);
- aMsg += " SfxBindings::EnterRegistrations ";
- if(pFile) {
- aMsg += "File: ";
- aMsg += pFile;
- aMsg += " Line: ";
- aMsg += ByteString::CreateFromInt32(nLine);
- }
- DbgTrace( aMsg.GetBuffer() );
+ rtl::OStringBuffer aMsg;
+ sal_uInt16 nSpaces = Min(nRegLevel, sal_uInt16(8));
+ while (nSpaces--)
+ aMsg.append(' ');
+ aMsg.append(RTL_CONSTASCII_STRINGPARAM("this = "));
+ aMsg.append(reinterpret_cast<sal_Int64>(this));
+ aMsg.append(RTL_CONSTASCII_STRINGPARAM(" Level = "));
+ aMsg.append(static_cast<sal_Int32>(nRegLevel));
+ aMsg.append(RTL_CONSTASCII_STRINGPARAM(
+ " SfxBindings::EnterRegistrations "));
+ if (pFile)
+ {
+ aMsg.append(RTL_CONSTASCII_STRINGPARAM("File: "));
+ aMsg.append(pFile);
+ aMsg.append(RTL_CONSTASCII_STRINGPARAM(" Line: "));
+ aMsg.append(static_cast<sal_Int32>(nLine));
+ }
+ DbgTrace(aMsg.getStr());
#endif
// When bindings are locked, also lock sub bindings.
@@ -1869,20 +1873,24 @@ void SfxBindings::LeaveRegistrations( sal_uInt16 nLevel, const char *pFile, int
}
#ifdef DBG_UTIL
- ByteString aMsg;
- aMsg.Fill( Min(nRegLevel, sal_uInt16(8)) );
- aMsg += "this = ";
- aMsg += ByteString::CreateFromInt32((long)this);
- aMsg += " Level = ";
- aMsg += ByteString::CreateFromInt32(nRegLevel);
- aMsg += " SfxBindings::LeaveRegistrations ";
- if(pFile) {
- aMsg += "File: ";
- aMsg += pFile;
- aMsg += " Line: ";
- aMsg += ByteString::CreateFromInt32(nLine);
- }
- DbgTrace( aMsg.GetBuffer() );
+ rtl::OStringBuffer aMsg;
+ sal_uInt16 nSpaces = Min(nRegLevel, sal_uInt16(8));
+ while (nSpaces--)
+ aMsg.append(' ');
+ aMsg.append(RTL_CONSTASCII_STRINGPARAM("this = "));
+ aMsg.append(reinterpret_cast<sal_Int64>(this));
+ aMsg.append(RTL_CONSTASCII_STRINGPARAM(" Level = "));
+ aMsg.append(static_cast<sal_Int32>(nRegLevel));
+ aMsg.append(RTL_CONSTASCII_STRINGPARAM(
+ " SfxBindings::LeaveRegistrations "));
+ if (pFile)
+ {
+ aMsg.append(RTL_CONSTASCII_STRINGPARAM("File: "));
+ aMsg.append(pFile);
+ aMsg.append(RTL_CONSTASCII_STRINGPARAM(" Line: "));
+ aMsg.append(static_cast<sal_Int32>(nLine));
+ }
+ DbgTrace(aMsg.getStr());
#endif
}