diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-24 20:44:55 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-24 20:45:56 +0000 |
commit | 2d43fed5870d89a96e3caee7563798bd09a22d6b (patch) | |
tree | 55cc0a10185ad35e7f9b3e559b68874605dd2c68 | |
parent | c7e314e94b8c41bd05064483ba8e33c6b7fdb9c0 (diff) |
coverity#704301 Logically dead code
Change-Id: I865979464a2abe51136b577fdb10ec0ae9faf11e
-rw-r--r-- | sfx2/source/appl/module.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sfx2/source/appl/module.cxx b/sfx2/source/appl/module.cxx index 0590b0addc73..1eefa3f9f6a1 100644 --- a/sfx2/source/appl/module.cxx +++ b/sfx2/source/appl/module.cxx @@ -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() |