From cad01ea74c603affcc15a5e32f75967f6dff0f87 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 5 Feb 2020 20:48:58 +0000 Subject: drop unnecessary include MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ifb7e34d5648238a1cf0a893a6713671fa6881161 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88066 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- svtools/source/control/ctrlbox.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'svtools') 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(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 ); -- cgit