diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-02-05 20:48:58 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-02-06 13:11:37 +0100 |
commit | cad01ea74c603affcc15a5e32f75967f6dff0f87 (patch) | |
tree | 73545de857fc0adfbd0d22f62fd9126a61fb3da1 /svtools | |
parent | e35ad8cb96f8299339a7efec4c5ccf389fece919 (diff) |
drop unnecessary include
Change-Id: Ifb7e34d5648238a1cf0a893a6713671fa6881161
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88066
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/ctrlbox.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index 779f22a137b5..5324c98ee964 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -1366,13 +1366,13 @@ SvtLineListBox::~SvtLineListBox() sal_Int32 SvtLineListBox::GetStylePos( sal_Int32 nListPos ) { - sal_Int32 nPos = LISTBOX_ENTRY_NOTFOUND; + sal_Int32 nPos = -1; --nListPos; sal_Int32 n = 0; size_t i = 0; size_t nCount = m_vLineList.size(); - while ( nPos == LISTBOX_ENTRY_NOTFOUND && i < nCount ) + while ( nPos == -1 && i < nCount ) { if ( nListPos == n ) nPos = static_cast<sal_Int32>(i); @@ -1448,7 +1448,7 @@ void SvtLineListBox::UpdateEntries() Color SvtLineListBox::GetColorLine1( sal_Int32 nPos ) { sal_Int32 nStyle = GetStylePos( nPos ); - if (nStyle == LISTBOX_ENTRY_NOTFOUND) + if (nStyle == -1) return GetPaintColor( ); auto& pData = m_vLineList[ nStyle ]; return pData->GetColorLine1( GetColor( ) ); @@ -1457,7 +1457,7 @@ Color SvtLineListBox::GetColorLine1( sal_Int32 nPos ) Color SvtLineListBox::GetColorLine2( sal_Int32 nPos ) { sal_Int32 nStyle = GetStylePos(nPos); - if (nStyle == LISTBOX_ENTRY_NOTFOUND) + if (nStyle == -1) return GetPaintColor( ); auto& pData = m_vLineList[ nStyle ]; return pData->GetColorLine2( GetColor( ) ); @@ -1469,7 +1469,7 @@ Color SvtLineListBox::GetColorDist( sal_Int32 nPos ) Color rResult = rSettings.GetFieldColor(); sal_Int32 nStyle = GetStylePos( nPos ); - if (nStyle == LISTBOX_ENTRY_NOTFOUND) + if (nStyle == -1) return rResult; auto& pData = m_vLineList[ nStyle ]; return pData->GetColorDist( GetColor( ), rResult ); |