diff options
author | Andrea Gelmini <andrea.gelmini@gelma.net> | 2022-07-31 08:47:30 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2022-08-01 07:22:45 +0200 |
commit | 7bacf8e855c49c1883662229d7934dbca47dc2af (patch) | |
tree | 7300e19ce0bbed1200bdbb6f38f9570988f6a076 | |
parent | 8df7947f49cd00c5432dfe565dba9788d88ff714 (diff) |
Fix typo in code
Change-Id: I215eb41bc2e7f442b0dc37393460bd2e53fed8c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137646
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r-- | include/vcl/toolkit/svlbitm.hxx | 14 | ||||
-rw-r--r-- | vcl/source/treelist/svlbitm.cxx | 6 |
2 files changed, 10 insertions, 10 deletions
diff --git a/include/vcl/toolkit/svlbitm.hxx b/include/vcl/toolkit/svlbitm.hxx index 2c7f092c08ec..c9aaaa46d9f3 100644 --- a/include/vcl/toolkit/svlbitm.hxx +++ b/include/vcl/toolkit/svlbitm.hxx @@ -50,7 +50,7 @@ enum class SvItemStateFlags UNCHECKED = 0x01, CHECKED = 0x02, TRISTATE = 0x04, - HILIGHTED = 0x08 + HIGHLIGHTED = 0x08 }; namespace o3tl { @@ -195,7 +195,7 @@ public: } bool IsStateHilighted() const { - return bool(nItemFlags & SvItemStateFlags::HILIGHTED); + return bool(nItemFlags & SvItemStateFlags::HIGHLIGHTED); } void SetStateChecked(); void SetStateUnchecked(); @@ -205,26 +205,26 @@ public: inline void SvLBoxButton::SetStateChecked() { - nItemFlags &= SvItemStateFlags::HILIGHTED; + nItemFlags &= SvItemStateFlags::HIGHLIGHTED; nItemFlags |= SvItemStateFlags::CHECKED; } inline void SvLBoxButton::SetStateUnchecked() { - nItemFlags &= SvItemStateFlags::HILIGHTED; + nItemFlags &= SvItemStateFlags::HIGHLIGHTED; nItemFlags |= SvItemStateFlags::UNCHECKED; } inline void SvLBoxButton::SetStateTristate() { - nItemFlags &= SvItemStateFlags::HILIGHTED; + nItemFlags &= SvItemStateFlags::HIGHLIGHTED; nItemFlags |= SvItemStateFlags::TRISTATE; } inline void SvLBoxButton::SetStateHilighted( bool bHilight ) { if ( bHilight ) - nItemFlags |= SvItemStateFlags::HILIGHTED; + nItemFlags |= SvItemStateFlags::HIGHLIGHTED; else - nItemFlags &= ~SvItemStateFlags::HILIGHTED; + nItemFlags &= ~SvItemStateFlags::HIGHLIGHTED; } struct SvLBoxContextBmp_Impl; diff --git a/vcl/source/treelist/svlbitm.cxx b/vcl/source/treelist/svlbitm.cxx index 724eba111505..26b3da45476e 100644 --- a/vcl/source/treelist/svlbitm.cxx +++ b/vcl/source/treelist/svlbitm.cxx @@ -75,11 +75,11 @@ SvBmp SvLBoxButtonData::GetIndex( SvItemStateFlags nItemState ) nIdx = SvBmp::CHECKED; else if (nItemState == SvItemStateFlags::TRISTATE) nIdx = SvBmp::TRISTATE; - else if (nItemState == (SvItemStateFlags::UNCHECKED | SvItemStateFlags::HILIGHTED)) + else if (nItemState == (SvItemStateFlags::UNCHECKED | SvItemStateFlags::HIGHLIGHTED)) nIdx = SvBmp::HIUNCHECKED; - else if (nItemState == (SvItemStateFlags::CHECKED | SvItemStateFlags::HILIGHTED)) + else if (nItemState == (SvItemStateFlags::CHECKED | SvItemStateFlags::HIGHLIGHTED)) nIdx = SvBmp::HICHECKED; - else if (nItemState == (SvItemStateFlags::TRISTATE | SvItemStateFlags::HILIGHTED)) + else if (nItemState == (SvItemStateFlags::TRISTATE | SvItemStateFlags::HIGHLIGHTED)) nIdx = SvBmp::HITRISTATE; else nIdx = SvBmp::UNCHECKED; |