summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-09 12:36:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-10 08:08:45 +0200
commitcc96c1fdc1b62f8b61567f5df63e892953c87f10 (patch)
tree23592daf915f767caa8eed6f14930f5d1027bcb2 /svl
parentaef704d8077226b13a28e664db59d27017241afe (diff)
convert EItem to scoped enum
and drop read-only enumerators: enum EItem E_APEARCFG enum EItem E_FLTRCFG enum EItem E_FONTSUBSTCONFIG enum EItem E_LANGUAGEOPTIONS enum EItem E_SEARCHOPT Change-Id: Ie3baaecec3d1c30404b4fb0d948e25d4bb2f3f93
Diffstat (limited to 'svl')
-rw-r--r--svl/source/config/cjkoptions.cxx2
-rw-r--r--svl/source/config/ctloptions.cxx2
-rw-r--r--svl/source/config/itemholder2.cxx8
3 files changed, 4 insertions, 8 deletions
diff --git a/svl/source/config/cjkoptions.cxx b/svl/source/config/cjkoptions.cxx
index c1dede974434..405e8b93eb7c 100644
--- a/svl/source/config/cjkoptions.cxx
+++ b/svl/source/config/cjkoptions.cxx
@@ -389,7 +389,7 @@ SvtCJKOptions::SvtCJKOptions(bool bDontLoad)
{
pImpl = std::make_shared<SvtCJKOptions_Impl>();
g_pCJKOptions = pImpl;
- ItemHolder2::holdConfigItem(E_CJKOPTIONS);
+ ItemHolder2::holdConfigItem(EItem::CJKOptions);
}
if( !bDontLoad && !pImpl->IsLoaded())
diff --git a/svl/source/config/ctloptions.cxx b/svl/source/config/ctloptions.cxx
index 3160af3651c1..c4fffc504560 100644
--- a/svl/source/config/ctloptions.cxx
+++ b/svl/source/config/ctloptions.cxx
@@ -354,7 +354,7 @@ SvtCTLOptions::SvtCTLOptions( bool bDontLoad )
{
m_pImpl = std::make_shared<SvtCTLOptions_Impl>();
g_pCTLOptions = m_pImpl;
- ItemHolder2::holdConfigItem(E_CTLOPTIONS);
+ ItemHolder2::holdConfigItem(EItem::CTLOptions);
}
if( !bDontLoad && !m_pImpl->IsLoaded() )
diff --git a/svl/source/config/itemholder2.cxx b/svl/source/config/itemholder2.cxx
index 27344aa60878..fc12e7681ce4 100644
--- a/svl/source/config/itemholder2.cxx
+++ b/svl/source/config/itemholder2.cxx
@@ -118,18 +118,14 @@ void ItemHolder2::impl_newItem(TItemInfo& rItem)
{
switch(rItem.eItem)
{
- case E_CJKOPTIONS :
+ case EItem::CJKOptions :
rItem.pItem = new SvtCJKOptions();
break;
- case E_CTLOPTIONS :
+ case EItem::CTLOptions :
rItem.pItem = new SvtCTLOptions();
break;
- case E_LANGUAGEOPTIONS :
-// capsulate CTL and CJL options ! rItem.pItem = new SvtLanguageOptions();
- break;
-
default:
OSL_ASSERT(false);
break;