diff options
Diffstat (limited to 'include/canvas/canvastools.hxx')
-rw-r--r-- | include/canvas/canvastools.hxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/include/canvas/canvastools.hxx b/include/canvas/canvastools.hxx index 67119cf914b8..261a490230bb 100644 --- a/include/canvas/canvastools.hxx +++ b/include/canvas/canvastools.hxx @@ -377,7 +377,7 @@ namespace canvas ( arg>TargetLimits::max() ) ) // overflow will happen { # if OSL_DEBUG_LEVEL > 2 - OSL_TRACE("numeric_cast detected data loss"); + SAL_WARN("canvas", "numeric_cast detected data loss"); #endif throw css::uno::RuntimeException( "numeric_cast detected data loss", @@ -460,8 +460,7 @@ namespace canvas if( !mbCaseSensitive && aStr != aStr.toAsciiLowerCase() ) { - OSL_TRACE("ValueMap::ValueMap(): Key %s is not lowercase", - pMap->maKey); + SAL_WARN("canvas", "ValueMap::ValueMap(): Key is not lowercase " << pMap->maKey); OSL_FAIL( "ValueMap::ValueMap(): Key is not lowercase" ); } @@ -472,9 +471,8 @@ namespace canvas if( !mapComparator(pMap[0], pMap[1]) && mapComparator(pMap[1], pMap[0]) ) { - OSL_TRACE("ValueMap::ValueMap(): Map is not sorted, keys %s and %s are wrong", - pMap[0].maKey, - pMap[1].maKey); + SAL_WARN("canvas", "ValueMap::ValueMap(): Map is not sorted, keys are wrong, " + << pMap[0].maKey << " and " << pMap[1].maKey); OSL_FAIL( "ValueMap::ValueMap(): Map is not sorted" ); } @@ -482,8 +480,7 @@ namespace canvas if( !mbCaseSensitive && aStr2 != aStr2.toAsciiLowerCase() ) { - OSL_TRACE("ValueMap::ValueMap(): Key %s is not lowercase", - pMap[1].maKey); + SAL_WARN("canvas", "ValueMap::ValueMap(): Key is not lowercase" << pMap[1].maKey); OSL_FAIL( "ValueMap::ValueMap(): Key is not lowercase" ); } } |