summaryrefslogtreecommitdiff
path: root/svtools/source/control/autocmpledit.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/control/autocmpledit.cxx')
-rw-r--r--svtools/source/control/autocmpledit.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/control/autocmpledit.cxx b/svtools/source/control/autocmpledit.cxx
index d008ee41bc69..8bffcd166eb4 100644
--- a/svtools/source/control/autocmpledit.cxx
+++ b/svtools/source/control/autocmpledit.cxx
@@ -44,7 +44,7 @@ IMPL_LINK_NOARG(AutocompleteEdit, AutoCompleteHdl_Impl, Edit&, void)
if( aCurText.isEmpty() )
return;
- if( m_aEntries.size() )
+ if( !m_aEntries.empty() )
{
if( Match( aCurText ) )
{
@@ -89,7 +89,7 @@ bool AutocompleteEdit::PreNotify( NotifyEvent& rNEvt )
Selection aSelection( GetSelection() );
sal_uInt16 nLen = static_cast<sal_uInt16>(aSelection.Min());
- if( m_aMatching.size() &&
+ if( !m_aMatching.empty() &&
( ( aCode == KEY_DOWN && m_nCurrent + 1 < m_aMatching.size() )
|| ( aCode == KEY_UP && m_nCurrent > 0 ) ) )
{