summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-10-08 12:58:14 +0200
committerStephan Bergmann <sbergman@redhat.com>2011-10-08 12:59:09 +0200
commit6b900b8bede24c8710d62e9e7cbff613a0b12f9f (patch)
tree7171825495fa78eb93b23ca9c2d30f26da45f91b /sfx2
parent8ac7152ca8b3b71c17ea55ec9e660804990ab86c (diff)
Introduced OSL_FORMAT, adpated some places to it.
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/module.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/sfx2/source/appl/module.cxx b/sfx2/source/appl/module.cxx
index 8fa50b38077a..6883e90f5ff5 100644
--- a/sfx2/source/appl/module.cxx
+++ b/sfx2/source/appl/module.cxx
@@ -391,13 +391,11 @@ FieldUnit SfxModule::GetModuleFieldUnit( ::com::sun::star::uno::Reference< ::com
SfxPoolItem const * pItem = pModule->GetItem( SID_ATTR_METRIC );
if ( pItem == NULL )
{
-#if OSL_DEBUG_LEVEL > 0
- ::rtl::OStringBuffer message;
- message.append( "SfxModule::GetFieldUnit: no metric item in the module implemented by '" );
- message.append( typeid( *pModule ).name() );
- message.append( "'!" );
- OSL_ENSURE( false, message.makeStringAndClear().getStr() );
-#endif
+ OSL_FAIL(
+ OSL_FORMAT(
+ ("SfxModule::GetFieldUnit: no metric item in the module"
+ " implemented by '%s'!"),
+ typeid(*pModule).name()));
return FUNIT_100TH_MM;
}
return (FieldUnit)( (SfxUInt16Item*)pItem )->GetValue();