summaryrefslogtreecommitdiff
path: root/sal/inc/rtl
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2013-11-29 15:13:41 +0000
committerHerbert Dürr <hdu@apache.org>2013-11-29 15:13:41 +0000
commitc66c37e83ded45f146aa4d48557050516da69062 (patch)
tree7436eefb2ab4468fe2a17aed8b94404b0bce3b15 /sal/inc/rtl
parent662f26a68043be55190bbc17319f863fecb6e48c (diff)
#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.
Notes
Notes: prefer: 70a6b9ffbd676a1384433a86205d2cd4f2d4f4b1
Diffstat (limited to 'sal/inc/rtl')
-rw-r--r--sal/inc/rtl/string.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sal/inc/rtl/string.hxx b/sal/inc/rtl/string.hxx
index df6dde2e8d9c..47631fd8c9a0 100644
--- a/sal/inc/rtl/string.hxx
+++ b/sal/inc/rtl/string.hxx
@@ -965,9 +965,11 @@ struct CStringHash
} /* 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)
-{ 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 */