summaryrefslogtreecommitdiff
path: root/sal/rtl/source/ustring.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-03-30 18:27:58 +0100
committerMichael Meeks <michael.meeks@suse.com>2012-04-02 13:51:55 +0100
commit1426d4432c59ef42f28642ec63e57517223eb32d (patch)
tree75b6d769d309b2564e6a730a278e9c1c126ce777 /sal/rtl/source/ustring.cxx
parent0f330ea25840690d05516adc20cfb3d1a9d33317 (diff)
sal: expose more stringbuffer related instrumentation points
Avoid ref/unref pair in makeStringAndClear, hook into the stringbuffer-like 'String' class to expose it's conversion to immutable strings, and fixup misc. missing instrumentation.
Diffstat (limited to 'sal/rtl/source/ustring.cxx')
-rw-r--r--sal/rtl/source/ustring.cxx15
1 files changed, 1 insertions, 14 deletions
diff --git a/sal/rtl/source/ustring.cxx b/sal/rtl/source/ustring.cxx
index 5cdc5ed4031f..2909432345a2 100644
--- a/sal/rtl/source/ustring.cxx
+++ b/sal/rtl/source/ustring.cxx
@@ -79,20 +79,6 @@ static rtl_uString const aImplEmpty_rtl_uString =
#define IMPL_RTL_INTERN
static void internRelease (rtl_uString *pThis);
-#if 0 // string lifetime / logging debug
-# include <rtl/ustring.hxx>
-# define RTL_LOG_STRING_NEW(s) \
- do { \
- fprintf (stderr, "+%s\n", \
- rtl::OUStringToOString(s, RTL_TEXTENCODING_UTF8).getStr()); \
- } while (0)
-# define RTL_LOG_STRING_DELETE(s) \
- do { \
- fprintf (stderr, "-%s\n", \
- rtl::OUStringToOString(s, RTL_TEXTENCODING_UTF8).getStr()); \
- } while (0)
-#endif
-
/* ======================================================================= */
/* Include String/UString template code */
@@ -700,6 +686,7 @@ static void rtl_string2UString_status( rtl_uString** ppThis,
if (pInfo != NULL) {
*pInfo = 0;
}
+ RTL_LOG_STRING_NEW( *ppThis );
return;
}
}