diff --git a/unusedcode.easy b/unusedcode.easy index dacf1c74b718..7c3f2d51e1e2 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -136,7 +136,6 @@ ComboBox::GetSeparatorPos() const ComboBox::GetUserItemSize() const ComboBox::IsDDAutoWidthEnabled() const ComboBox::IsUserDrawEnabled() const -ComboBox::SetSeparatorPos() ComboBox::ShowProminentEntry(unsigned short) CommandExtTextInputData::CommandExtTextInputData() CommandLine::get_arg(unsigned long) const diff --git a/vcl/inc/vcl/combobox.h b/vcl/inc/vcl/combobox.h index 387c20d544be..49ed8a441eae 100644 --- a/vcl/inc/vcl/combobox.h +++ b/vcl/inc/vcl/combobox.h @@ -29,6 +29,8 @@ #ifndef _SV_COMBOBOX_H #define _SV_COMBOBOX_H +#include + #define COMBOBOX_APPEND ((sal_uInt16)0xFFFF) #define COMBOBOX_ENTRY_NOTFOUND ((sal_uInt16)0xFFFF) #define COMBOBOX_ERROR ((sal_uInt16)0xFFFF) diff --git a/vcl/inc/vcl/combobox.hxx b/vcl/inc/vcl/combobox.hxx index 12385c9bd9e2..7e1ea38df798 100644 --- a/vcl/inc/vcl/combobox.hxx +++ b/vcl/inc/vcl/combobox.hxx @@ -156,8 +156,7 @@ public: void DrawEntry( const UserDrawEvent& rEvt, sal_Bool bDrawImage, sal_Bool bDrawText, sal_Bool bDrawTextAtImagePos = sal_False ); void SetBorderStyle( sal_uInt16 nBorderStyle ); - void SetSeparatorPos( sal_uInt16 n ); - void SetSeparatorPos(); + void SetSeparatorPos( sal_uInt16 n = LISTBOX_ENTRY_NOTFOUND ); sal_uInt16 GetSeparatorPos() const; void EnableAutocomplete( sal_Bool bEnable, sal_Bool bMatchCase = sal_False ); diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx index c01092749e73..a4a952341231 100644 --- a/vcl/source/control/combobox.cxx +++ b/vcl/source/control/combobox.cxx @@ -1374,13 +1374,6 @@ void ComboBox::SetSeparatorPos( sal_uInt16 n ) // ----------------------------------------------------------------------- -void ComboBox::SetSeparatorPos() -{ - mpImplLB->SetSeparatorPos( LISTBOX_ENTRY_NOTFOUND ); -} - -// ----------------------------------------------------------------------- - sal_uInt16 ComboBox::GetSeparatorPos() const { return mpImplLB->GetSeparatorPos();