diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-11-16 13:49:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-11-18 09:49:14 +0100 |
commit | 0fc7daed227ea6fd4fb3de04c92ae6cb765122c3 (patch) | |
tree | 2de30ad2686820ddc336cf5b883720ef58723b83 /svtools | |
parent | 227100ff4e5560c09c5a822052fc5ada541b8cc5 (diff) |
loplugin:singlevalfields
Change-Id: I0bb32ad7351f0e4cfbdc872ed0e81b8157ecc4cb
Reviewed-on: https://gerrit.libreoffice.org/83056
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/inettbc.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx index 1603a0fc824a..5ffd546dad6c 100644 --- a/svtools/source/control/inettbc.cxx +++ b/svtools/source/control/inettbc.cxx @@ -1356,7 +1356,7 @@ void SvtURLBox::TryAutoComplete() return; sal_uInt16 nLen = static_cast<sal_uInt16>(aSelection.Min()); aCurText = aCurText.copy( 0, nLen ); - if( !aCurText.isEmpty() && bIsAutoCompleteEnabled ) + if( !aCurText.isEmpty() ) { if ( pCtx.is() ) { @@ -1374,8 +1374,7 @@ SvtURLBox::SvtURLBox( vcl::Window* pParent, INetProtocol eSmart, bool bSetDefaul : ComboBox( pParent , WB_DROPDOWN | WB_AUTOHSCROLL ), eSmartProtocol( eSmart ), bAutoCompleteMode( false ), - bHistoryDisabled( false ), - bIsAutoCompleteEnabled( true ) + bHistoryDisabled( false ) { Init(bSetDefaultHelpID); @@ -1391,8 +1390,7 @@ SvtURLBox::SvtURLBox( vcl::Window* pParent, WinBits _nStyle, INetProtocol eSmart : ComboBox( pParent, _nStyle ), eSmartProtocol( eSmart ), bAutoCompleteMode( false ), - bHistoryDisabled( false ), - bIsAutoCompleteEnabled( true ) + bHistoryDisabled( false ) { Init(bSetDefaultHelpID); } @@ -1440,7 +1438,7 @@ void SvtURLBox::UpdatePickList( ) } OUString sText = GetText(); - if ( !sText.isEmpty() && bIsAutoCompleteEnabled ) + if ( !sText.isEmpty() ) { pCtx = new SvtMatchContext_Impl( this, sText ); pCtx->launch(); |