Skip to content

Commit

Permalink
StaticWidgetType didn't build with c++14
Browse files Browse the repository at this point in the history
  • Loading branch information
texus committed Dec 10, 2022
1 parent 1c0b9a0 commit 32b54a4
Show file tree
Hide file tree
Showing 45 changed files with 188 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Backend/Renderer/GLES2/CanvasGLES2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char CanvasGLES2::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

CanvasGLES2::CanvasGLES2(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Backend/Renderer/OpenGL3/CanvasOpenGL3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char CanvasOpenGL3::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

CanvasOpenGL3::CanvasOpenGL3(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Backend/Renderer/SDL_Renderer/CanvasSDL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char CanvasSDL::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

CanvasSDL::CanvasSDL(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Backend/Renderer/SFML-Graphics/CanvasSFML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char CanvasSFML::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

CanvasSFML::CanvasSFML(const char* typeName, bool initRenderer) :
Expand Down
6 changes: 6 additions & 0 deletions src/Container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1507,6 +1507,12 @@ namespace tgui
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char RootContainer::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

RootContainer::RootContainer(const char* typeName, bool initRenderer) :
Container{typeName, initRenderer}
{
Expand Down
4 changes: 4 additions & 0 deletions src/CustomWidgetForBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char CustomWidgetForBindings::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

CustomWidgetForBindings::CustomWidgetForBindings(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/BitmapButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char BitmapButton::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

BitmapButton::BitmapButton(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/Button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char Button::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Button::Button(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/ChatBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char ChatBox::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

ChatBox::ChatBox(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/CheckBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char CheckBox::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

CheckBox::CheckBox(const char* typeName, bool initRenderer) :
Expand Down
6 changes: 6 additions & 0 deletions src/Widgets/ChildWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ namespace tgui

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char ChildWindow::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

ChildWindow::ChildWindow(const char* typeName, bool initRenderer) :
Container{typeName, false}
{
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/ClickableWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char ClickableWidget::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

ClickableWidget::ClickableWidget(const char* typeName, bool initRenderer) :
Expand Down
6 changes: 6 additions & 0 deletions src/Widgets/ColorPicker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ namespace tgui

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char ColorPicker::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

ColorPicker::ColorPicker(const char* typeName, bool initRenderer) :
ChildWindow{typeName, false}
{
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/ComboBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char ComboBox::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

ComboBox::ComboBox(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/EditBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ namespace tgui
const char* EditBox::Validator::UInt = "[0-9]*";
const char* EditBox::Validator::Float = "[+-]?[0-9]*\\.?[0-9]*";

#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char EditBox::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

EditBox::EditBox(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/FileDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char FileDialog::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

FileDialog::FileDialog(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/Grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char Grid::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Grid::Grid(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/Group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char Group::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Group::Group(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/HorizontalLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char HorizontalLayout::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

HorizontalLayout::HorizontalLayout(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/HorizontalWrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char HorizontalWrap::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

HorizontalWrap::HorizontalWrap(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/Knob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ namespace

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char Knob::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Knob::Knob(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/Label.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char Label::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Label::Label(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/ListBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char ListBox::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

ListBox::ListBox(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/ListView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char ListView::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

ListView::ListView(const char* typeName, bool initRenderer) :
Expand Down
6 changes: 6 additions & 0 deletions src/Widgets/MenuBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ namespace tgui

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char MenuBar::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

MenuBar::MenuBar(const char* typeName, bool initRenderer) :
Widget{typeName, false},
m_menuWidgetPlaceholder(std::make_shared<MenuBarMenuPlaceholder>(this)),
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/MessageBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char MessageBox::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

MessageBox::MessageBox(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/Panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char Panel::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Panel::Panel(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/Picture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char Picture::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Picture::Picture(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/ProgressBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char ProgressBar::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

ProgressBar::ProgressBar(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/RadioButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char RadioButton::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

RadioButton::RadioButton(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/RadioButtonGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char RadioButtonGroup::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

RadioButtonGroup::RadioButtonGroup(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/RangeSlider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char RangeSlider::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

RangeSlider::RangeSlider(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/RichTextLabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ namespace tgui
};
#endif

#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char RichTextLabel::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

RichTextLabel::RichTextLabel(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/ScrollablePanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char ScrollablePanel::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

ScrollablePanel::ScrollablePanel(const char* typeName, bool initRenderer) :
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/Scrollbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

namespace tgui
{
#if TGUI_COMPILED_WITH_CPP_VER < 17
constexpr const char Scrollbar::StaticWidgetType[];
#endif

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Scrollbar::Scrollbar(const char* typeName, bool initRenderer) :
Expand Down
Loading

0 comments on commit 32b54a4

Please sign in to comment.