summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-10-08 18:56:48 +0200
committerStephan Bergmann <sbergman@redhat.com>2011-10-08 18:56:48 +0200
commitd1076b1b7f4049d8820f410d72c7a60bfac95152 (patch)
treeb7d734cddb6b39a1028834e4307bbc5744c35e2f /sfx2
parentd71c0373433da965f8a2d512f72df1d0a0adee2b (diff)
Second attempt at (cross-platform) OSL_FORMAT.
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();