summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-13 10:50:28 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-13 10:53:28 +0100
commitee11e221d2108212619e1bbe7f029e7d9afdba32 (patch)
tree65e77bfcd7fc7a4ca7e1c111cc8707615bc0d613 /svl
parente37388c7de15242b7af0bf9fdc48c6d194d8cd94 (diff)
tdf#43157: Fix format string violations in OSL_TRACE etc.
...in preparation of enabling the __attribute__((format(...))) in sal_detail_logFormat (include/sal/detail/log.h) Change-Id: I8a859199fa11ca0f9f4f4b4b23a8ebddec955a86
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/style.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx
index 9fc5cbc2a8bb..f336920b6799 100644
--- a/svl/source/items/style.cxx
+++ b/svl/source/items/style.cxx
@@ -44,7 +44,10 @@ public:
DbgStyleSheetReferences() : mnStyles(0), mnPools(0) {}
~DbgStyleSheetReferences()
{
- OSL_TRACE("DbgStyleSheetReferences\nSfxStyleSheetBase left %ld\nSfxStyleSheetBasePool left %ld", mnStyles, mnPools );
+ SAL_WARN_IF(
+ mnStyles != 0 || mnPools != 0, "svl.items",
+ "SfxStyleSheetBase left " << mnStyles
+ << "; SfxStyleSheetBasePool left " << mnPools);
}
sal_uInt32 mnStyles;