diff options
-rw-r--r-- | compilerplugins/clang/unusedenumconstants.writeonly.results | 2 | ||||
-rw-r--r-- | include/vcl/treelistbox.hxx | 9 | ||||
-rw-r--r-- | vcl/source/treelist/treelistbox.cxx | 2 |
3 files changed, 4 insertions, 9 deletions
diff --git a/compilerplugins/clang/unusedenumconstants.writeonly.results b/compilerplugins/clang/unusedenumconstants.writeonly.results index 13c5fd812195..6ba7ebb40d81 100644 --- a/compilerplugins/clang/unusedenumconstants.writeonly.results +++ b/compilerplugins/clang/unusedenumconstants.writeonly.results @@ -2726,8 +2726,6 @@ include/svtools/treelistbox.hxx:191 enum SvTreeListBoxFlags IN_EDT include/svtools/treelistbox.hxx:192 enum SvTreeListBoxFlags EDT_ENABLED -include/svtools/treelistbox.hxx:193 - enum SvTreeListBoxFlags IS_EXPANDING include/svtools/treelistbox.hxx:194 enum SvTreeListBoxFlags IS_TRAVELSELECT include/svtools/treelistbox.hxx:195 diff --git a/include/vcl/treelistbox.hxx b/include/vcl/treelistbox.hxx index 36dd643eb473..5e7787b9ab88 100644 --- a/include/vcl/treelistbox.hxx +++ b/include/vcl/treelistbox.hxx @@ -180,14 +180,13 @@ enum class SvTreeListBoxFlags NONE = 0x0000, IN_EDT = 0x0001, EDT_ENABLED = 0x0002, - IS_EXPANDING = 0x0004, - IS_TRAVELSELECT = 0x0008, - TARGEMPH_VIS = 0x0010, - EDTEND_CALLED = 0x0020, + IS_TRAVELSELECT = 0x0004, + TARGEMPH_VIS = 0x0008, + EDTEND_CALLED = 0x0010, }; namespace o3tl { - template<> struct typed_flags<SvTreeListBoxFlags> : is_typed_flags<SvTreeListBoxFlags, 0x003f> {}; + template<> struct typed_flags<SvTreeListBoxFlags> : is_typed_flags<SvTreeListBoxFlags, 0x001f> {}; } struct SvTreeListBoxImpl; diff --git a/vcl/source/treelist/treelistbox.cxx b/vcl/source/treelist/treelistbox.cxx index 54102dc44ede..65114a2a1936 100644 --- a/vcl/source/treelist/treelistbox.cxx +++ b/vcl/source/treelist/treelistbox.cxx @@ -2143,7 +2143,6 @@ bool SvTreeListBox::Expand( SvTreeListEntry* pParent ) RequestingChildren( pParent ); if( pParent->HasChildren() ) { - nImpFlags |= SvTreeListBoxFlags::IS_EXPANDING; if( ExpandingHdl() ) { bExpanded = true; @@ -2177,7 +2176,6 @@ bool SvTreeListBox::Expand( SvTreeListEntry* pParent ) bool SvTreeListBox::Collapse( SvTreeListEntry* pParent ) { - nImpFlags &= ~SvTreeListBoxFlags::IS_EXPANDING; pHdlEntry = pParent; bool bCollapsed = false; |