diff options
Diffstat (limited to 'sfx2/source/doc')
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index 887be25e167d..d646e5f13ab0 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -2874,7 +2874,7 @@ sal_Int16 SfxObjectShell::QueryHiddenInformation( HiddenWarningFact eFact, Windo { sal_Int16 nRet = RET_YES; sal_uInt16 nResId = 0; - SvtSecurityOptions::EOption eOption = static_cast< SvtSecurityOptions::EOption >( -1 ); + SvtSecurityOptions::EOption eOption; switch ( eFact ) { @@ -2903,12 +2903,10 @@ sal_Int16 SfxObjectShell::QueryHiddenInformation( HiddenWarningFact eFact, Windo break; } default: - { - SAL_WARN( "sfx2.doc", "SfxObjectShell::DetectHiddenInformation(): what fact?" ); - } + assert(false); // this cannot happen } - if ( eOption != -1 && SvtSecurityOptions().IsOptionSet( eOption ) ) + if ( SvtSecurityOptions().IsOptionSet( eOption ) ) { String sMessage( SfxResId(STR_HIDDENINFO_CONTAINS).toString() ); sal_uInt16 nWantedStates = HIDDENINFORMATION_RECORDEDCHANGES | HIDDENINFORMATION_NOTES; |