coverity#704301 Logically dead code

Change-Id: I865979464a2abe51136b577fdb10ec0ae9faf11e
This commit is contained in:
Caolán McNamara
2014-03-24 20:44:55 +00:00
parent c7e314e94b
commit 2d43fed587

View File

@@ -375,9 +375,7 @@ FieldUnit SfxModule::GetModuleFieldUnit( ::com::sun::star::uno::Reference< ::com
// find the module
SfxModule const * pModule = GetActiveModule( pViewFrame );
ENSURE_OR_RETURN( pModule != NULL, "SfxModule::GetModuleFieldUnit: no SfxModule for the given frame!", FUNIT_100TH_MM );
if ( pModule )
return pModule->GetFieldUnit();
return FUNIT_INCH;
return pModule->GetFieldUnit();
}
FieldUnit SfxModule::GetCurrentFieldUnit()