Skip to content

Commit 7ae922a

Browse files
committed
Fix InfoBar constructor for wxWidgets 3.3.0 compatibility
Updated the InfoBar constructor to use version-specific initialization based on wxWidgets version. For wxWidgets 3.3.0 and later, the constructor now explicitly passes wxID_ANY and wxBORDER_SIMPLE parameters, while maintaining backward compatibility with earlier versions through conditional compilation. * Plugin/ai: InfoBar initialization Generated by CodeLite Signed-off-by: Eran Ifrah <eran@codelite.org>
1 parent f44be05 commit 7ae922a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Plugin/ai/InfoBar.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
#include "file_logger.h"
55

66
InfoBar::InfoBar(wxWindow* parent, std::shared_ptr<std::promise<llm::UserAnswer>> promise_ptr)
7+
#if wxCHECK_VERSION(3, 3, 0)
8+
: wxInfoBar(parent, wxID_ANY, wxBORDER_SIMPLE)
9+
#else
710
: wxInfoBar(parent)
11+
#endif
812
, m_promise_ptr{promise_ptr}
913
{
1014
SetShowHideEffects(wxSHOW_EFFECT_NONE, wxSHOW_EFFECT_NONE);

0 commit comments

Comments
 (0)