summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objstor.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-01-12 21:36:45 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-01-14 08:28:29 +0100
commit8cc6699ade4e1e1b7b00d7034b12c3aec2ed50e9 (patch)
tree65869580c10285ec306e3bc78c8d1243605c96d2 /sfx2/source/doc/objstor.cxx
parent612981fc8fd7a35d8112951e05e1b2cf0f5f1c08 (diff)
-Werror,-Wtautological-constant-out-of-range-compare
...comparing enum eOption with -1 Change-Id: I927b71d1e9988a39ffc1be585ab4bdecfd16b226
Diffstat (limited to 'sfx2/source/doc/objstor.cxx')
-rw-r--r--sfx2/source/doc/objstor.cxx8
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;