Skip to content

Commit 4036e68

Browse files
jjuhltexus
authored andcommitted
Make a few constructors explicit
This makes them allign with the other backend ctors.
1 parent f3ef2ca commit 4036e68

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

include/TGUI/Backend/Renderer/Raylib/CanvasRaylib.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ namespace tgui
8282
/// @param initRenderer Should the renderer be initialized? Should be true unless a derived class initializes it.
8383
/// @see create
8484
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
85-
CanvasRaylib(const char* typeName = StaticWidgetType, bool initRenderer = true);
85+
explicit CanvasRaylib(const char* typeName = StaticWidgetType, bool initRenderer = true);
8686

8787
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
8888
/// @brief Copy constructor

include/TGUI/Backend/Renderer/SDL_GPU/CanvasSDLGPU.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ namespace tgui
7373
/// @param initRenderer Should the renderer be initialized? Should be true unless a derived class initializes it.
7474
/// @see create
7575
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
76-
CanvasSDLGPU(const char* typeName = StaticWidgetType, bool initRenderer = true);
76+
explicit CanvasSDLGPU(const char* typeName = StaticWidgetType, bool initRenderer = true);
7777

7878
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7979
/// @brief Copy constructor

include/TGUI/Backend/Renderer/SDL_Renderer/CanvasSDL.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ namespace tgui
7777
/// @param initRenderer Should the renderer be initialized? Should be true unless a derived class initializes it.
7878
/// @see create
7979
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
80-
CanvasSDL(const char* typeName = StaticWidgetType, bool initRenderer = true);
80+
explicit CanvasSDL(const char* typeName = StaticWidgetType, bool initRenderer = true);
8181

8282
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
8383
/// @brief Copy constructor

0 commit comments

Comments
 (0)