Kaydet (Commit) 2b75644c authored tarafından Caolán McNamara's avatar Caolán McNamara

ByteString->rtl::OStringBuffer

üst cc9aeefc
...@@ -1756,20 +1756,24 @@ sal_uInt16 SfxBindings::EnterRegistrations(const char *pFile, int nLine) ...@@ -1756,20 +1756,24 @@ sal_uInt16 SfxBindings::EnterRegistrations(const char *pFile, int nLine)
(void)nLine; (void)nLine;
DBG_MEMTEST(); DBG_MEMTEST();
#ifdef DBG_UTIL #ifdef DBG_UTIL
ByteString aMsg; rtl::OStringBuffer aMsg;
aMsg.Fill( Min(nRegLevel, sal_uInt16(8) ) ); sal_uInt16 nSpaces = Min(nRegLevel, sal_uInt16(8));
aMsg += "this = "; while (nSpaces--)
aMsg += ByteString::CreateFromInt32((long)this); aMsg.append(' ');
aMsg += " Level = "; aMsg.append(RTL_CONSTASCII_STRINGPARAM("this = "));
aMsg += ByteString::CreateFromInt32(nRegLevel); aMsg.append(reinterpret_cast<sal_Int64>(this));
aMsg += " SfxBindings::EnterRegistrations "; aMsg.append(RTL_CONSTASCII_STRINGPARAM(" Level = "));
if(pFile) { aMsg.append(static_cast<sal_Int32>(nRegLevel));
aMsg += "File: "; aMsg.append(RTL_CONSTASCII_STRINGPARAM(
aMsg += pFile; " SfxBindings::EnterRegistrations "));
aMsg += " Line: "; if (pFile)
aMsg += ByteString::CreateFromInt32(nLine); {
} aMsg.append(RTL_CONSTASCII_STRINGPARAM("File: "));
DbgTrace( aMsg.GetBuffer() ); aMsg.append(pFile);
aMsg.append(RTL_CONSTASCII_STRINGPARAM(" Line: "));
aMsg.append(static_cast<sal_Int32>(nLine));
}
DbgTrace(aMsg.getStr());
#endif #endif
// When bindings are locked, also lock sub bindings. // When bindings are locked, also lock sub bindings.
...@@ -1869,20 +1873,24 @@ void SfxBindings::LeaveRegistrations( sal_uInt16 nLevel, const char *pFile, int ...@@ -1869,20 +1873,24 @@ void SfxBindings::LeaveRegistrations( sal_uInt16 nLevel, const char *pFile, int
} }
#ifdef DBG_UTIL #ifdef DBG_UTIL
ByteString aMsg; rtl::OStringBuffer aMsg;
aMsg.Fill( Min(nRegLevel, sal_uInt16(8)) ); sal_uInt16 nSpaces = Min(nRegLevel, sal_uInt16(8));
aMsg += "this = "; while (nSpaces--)
aMsg += ByteString::CreateFromInt32((long)this); aMsg.append(' ');
aMsg += " Level = "; aMsg.append(RTL_CONSTASCII_STRINGPARAM("this = "));
aMsg += ByteString::CreateFromInt32(nRegLevel); aMsg.append(reinterpret_cast<sal_Int64>(this));
aMsg += " SfxBindings::LeaveRegistrations "; aMsg.append(RTL_CONSTASCII_STRINGPARAM(" Level = "));
if(pFile) { aMsg.append(static_cast<sal_Int32>(nRegLevel));
aMsg += "File: "; aMsg.append(RTL_CONSTASCII_STRINGPARAM(
aMsg += pFile; " SfxBindings::LeaveRegistrations "));
aMsg += " Line: "; if (pFile)
aMsg += ByteString::CreateFromInt32(nLine); {
} aMsg.append(RTL_CONSTASCII_STRINGPARAM("File: "));
DbgTrace( aMsg.GetBuffer() ); aMsg.append(pFile);
aMsg.append(RTL_CONSTASCII_STRINGPARAM(" Line: "));
aMsg.append(static_cast<sal_Int32>(nLine));
}
DbgTrace(aMsg.getStr());
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment