diff options
author | Bogdan Buzea <buzea.bogdan@libreoffice.org> | 2024-10-20 21:26:54 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-10-22 11:57:36 +0200 |
commit | 92bc85c42211fcfc6d2bfdeeaa1eb2d5c40ab6e1 (patch) | |
tree | 9cd7487e51bc47b46264387ee8cc2822ffc777f0 /sfx2 | |
parent | 47fd29a318513d26b86eb0cfa891969ce6c85879 (diff) |
tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 1413, 1553
Change-Id: I6b28e9d7055bdf120759dff38d869d1cb1e70cc1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175271
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/objserv.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index 2de634bc452c..ff628d18059a 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -1430,13 +1430,6 @@ void SfxObjectShell::GetState_Impl(SfxItemSet &rSet) { switch ( nWhich ) { - case SID_DOCTEMPLATE : - { - if ( isExportLocked()) - rSet.DisableItem( nWhich ); - break; - } - case SID_CHECKOUT: { bool bShow = false; @@ -1563,6 +1556,7 @@ void SfxObjectShell::GetState_Impl(SfxItemSet &rSet) break; } + case SID_DOCTEMPLATE: case SID_EXPORTDOC: case SID_EXPORTDOCASPDF: case SID_DIRECTEXPORTDOCASPDF: |