summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-06 11:42:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-06 11:36:17 +0000
commitfde0b8df30a65412afd5278a0dfd23ac30f62dc6 (patch)
tree3e373d73bf50c64bc4a01af4bd254f83628ea5fc /sc
parent3ea39bda0e948fde338bd9493639f4a6e8a8ea5b (diff)
loplugin:unusedenumconstants in oox
Convert FragmentHandler2::MCE_STATE to scoped enum and drop MCE_UNUSED constant Change-Id: Id0b3a81e61d77af5d3837527b008e196835f57cd Reviewed-on: https://gerrit.libreoffice.org/33954 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/oox/worksheetfragment.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/oox/worksheetfragment.cxx b/sc/source/filter/oox/worksheetfragment.cxx
index 8aaab09c43cd..c4882f80bec4 100644
--- a/sc/source/filter/oox/worksheetfragment.cxx
+++ b/sc/source/filter/oox/worksheetfragment.cxx
@@ -466,17 +466,17 @@ ContextHandlerRef WorksheetFragment::onCreateContext( sal_Int32 nElement, const
case XLS_TOKEN( oleObjects ):
if ( getCurrentElement() == XLS_TOKEN( controls ) )
{
- if( aMceState.empty() || aMceState.back() == MCE_STARTED )
+ if( aMceState.empty() || aMceState.back() == MCE_STATE::Started )
{
if ( getCurrentElement() == XLS_TOKEN( oleObjects ) ) importOleObject( rAttribs );
else
importControl( rAttribs );
}
- else if ( !aMceState.empty() && aMceState.back() == MCE_FOUND_CHOICE )
+ else if ( !aMceState.empty() && aMceState.back() == MCE_STATE::FoundChoice )
{
// reset the handling within 'Choice'
// this will force attempted handling in Fallback
- aMceState.back() = MCE_STARTED;
+ aMceState.back() = MCE_STATE::Started;
}
}
break;