From ee11e221d2108212619e1bbe7f029e7d9afdba32 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 13 Mar 2015 10:50:28 +0100 Subject: 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 --- svl/source/items/style.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'svl/source') 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; -- cgit v1.2.3