Kaydet (Commit) c66c37e8 authored tarafından Herbert Dürr's avatar Herbert Dürr

#i123068# allow OString argument for tools' DbgOut() function

The DbgOut() function is active especially in dbgutil-enabled builds.
For creating dynamic strings the rtl::OString is often used. Providing a
DbgOut() function which allows a direct OString argument helps for
situations where dynamic string creation and DbgOut() are employed.
üst 662f26a6
...@@ -965,9 +965,11 @@ struct CStringHash ...@@ -965,9 +965,11 @@ struct CStringHash
} /* Namespace */ } /* Namespace */
/* Helper method to support OString messages in OSL_ENSURE */ /* Helper methods to support OString messages in OSL_ENSURE, DBG_ERROR, DBG_WARN, DBG_TRACE, etc. */
inline sal_Bool SAL_CALL osl_assertFailedLine( const sal_Char* pszFileName, sal_Int32 nLine, const ::rtl::OString& rMessage) inline sal_Bool SAL_CALL osl_assertFailedLine( const sal_Char* pszFileName, sal_Int32 nLine, const ::rtl::OString& rMessage)
{ return osl_assertFailedLine( pszFileName, nLine, rMessage.getStr()); } { return osl_assertFailedLine( pszFileName, nLine, rMessage.getStr()); }
inline void DbgOut( const rtl::OString& rMessage, sal_uInt16 nOutType, const sal_Char* pFileName, sal_uInt16 nLineNum )
{ DbgOut( rMessage.getStr(), nOutType, pFileName, nLineNum); }
#endif /* __cplusplus */ #endif /* __cplusplus */
......
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