Prevent warning in wxSTCListBoxWin ctr
Currently 1 argument for the constructor is only used in an #ifdef block, and so some compilers give an unused parameter warning. Instead use the parameter with a switch statement to avoid the warning.
This commit is contained in:
@@ -3223,15 +3223,17 @@ wxSTCListBoxWin::wxSTCListBoxWin(wxWindow* parent, wxSTCListBox** lb,
|
|||||||
wxSTCListBoxVisualData* v, int h, int tech)
|
wxSTCListBoxVisualData* v, int h, int tech)
|
||||||
:wxSTCPopupWindow(parent)
|
:wxSTCPopupWindow(parent)
|
||||||
{
|
{
|
||||||
|
switch ( tech )
|
||||||
|
{
|
||||||
#ifdef HAVE_DIRECTWRITE_TECHNOLOGY
|
#ifdef HAVE_DIRECTWRITE_TECHNOLOGY
|
||||||
if ( tech == wxSTC_TECHNOLOGY_DIRECTWRITE )
|
case wxSTC_TECHNOLOGY_DIRECTWRITE:
|
||||||
{
|
*lb = new wxSTCListBoxD2D(this, v, h);
|
||||||
*lb = new wxSTCListBoxD2D(this, v, h);
|
break;
|
||||||
}
|
|
||||||
else
|
|
||||||
#endif
|
#endif
|
||||||
{
|
case wxSTC_TECHNOLOGY_DEFAULT:
|
||||||
*lb = new wxSTCListBox(this, v, h);
|
wxFALLTHROUGH;
|
||||||
|
default:
|
||||||
|
*lb = new wxSTCListBox(this, v, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use the background of this window to form a frame around the listbox
|
// Use the background of this window to form a frame around the listbox
|
||||||
|
Reference in New Issue
Block a user