summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-22 12:56:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-24 11:19:04 +0100
commit6b8cd04144cbafd32450e9ab98a7b25d816cf6e2 (patch)
tree65e0a4dd5df5d9f9f327c9548f592706bb57d573 /sw/source/uibase
parent9fe4d2225c22e6583043c6cf6c723432e3f4b19e (diff)
remove unused SwInsertNumTypes
Change-Id: Iede167882414e77f54218e8458f5315c1e16f245 Reviewed-on: https://gerrit.libreoffice.org/63912 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/inc/numberingtypelistbox.hxx7
-rw-r--r--sw/source/uibase/misc/numberingtypelistbox.cxx6
2 files changed, 5 insertions, 8 deletions
diff --git a/sw/source/uibase/inc/numberingtypelistbox.hxx b/sw/source/uibase/inc/numberingtypelistbox.hxx
index 6ceec6355c2a..593185708d9c 100644
--- a/sw/source/uibase/inc/numberingtypelistbox.hxx
+++ b/sw/source/uibase/inc/numberingtypelistbox.hxx
@@ -29,14 +29,11 @@
enum class SwInsertNumTypes
{
NoNumbering = 0x01,
- PageStyleNumbering = 0x02,
- Bitmap = 0x04,
- Bullet = 0x08,
- Extended = 0x10
+ Extended = 0x02
};
namespace o3tl {
- template<> struct typed_flags<SwInsertNumTypes> : is_typed_flags<SwInsertNumTypes, 0x1f> {};
+ template<> struct typed_flags<SwInsertNumTypes> : is_typed_flags<SwInsertNumTypes, 0x03> {};
};
struct SwNumberingTypeListBox_Impl;
diff --git a/sw/source/uibase/misc/numberingtypelistbox.cxx b/sw/source/uibase/misc/numberingtypelistbox.cxx
index f51f735822e6..83aa07940e71 100644
--- a/sw/source/uibase/misc/numberingtypelistbox.cxx
+++ b/sw/source/uibase/misc/numberingtypelistbox.cxx
@@ -79,15 +79,15 @@ void SwNumberingTypeListBox::Reload(SwInsertNumTypes nTypeFlags)
break;
case style::NumberingType::CHAR_SPECIAL:
- bInsert = bool(nTypeFlags & SwInsertNumTypes::Bullet);
+ bInsert = false;
break;
case style::NumberingType::PAGE_DESCRIPTOR:
- bInsert = bool(nTypeFlags & SwInsertNumTypes::PageStyleNumbering);
+ bInsert = false;
break;
case style::NumberingType::BITMAP:
- bInsert = bool(nTypeFlags & SwInsertNumTypes::Bitmap );
+ bInsert = false;
break;
case style::NumberingType::BITMAP | LINK_TOKEN: