From 86e6567d0849211f3dae3ed9d60d24b2de8565e5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 20:45:27 +0300 Subject: change constructors in scrollarea into explicit. --- src/gui/widgets/scrollarea.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/scrollarea.h') diff --git a/src/gui/widgets/scrollarea.h b/src/gui/widgets/scrollarea.h index 4c4b3f4a9..eeb709768 100644 --- a/src/gui/widgets/scrollarea.h +++ b/src/gui/widgets/scrollarea.h @@ -51,15 +51,16 @@ class ScrollArea final : public gcn::ScrollArea, * Constructor that takes no content. Needed for use with the DropDown * class. */ - ScrollArea(const bool opaque = true, const std::string &skin = ""); + explicit ScrollArea(const bool opaque = true, + const std::string &skin = ""); /** * Constructor. * * @param content the initial content to show in the scroll area */ - ScrollArea(gcn::Widget *const widget, const bool opaque = true, - const std::string &skin = ""); + explicit ScrollArea(gcn::Widget *const widget, const bool opaque = true, + const std::string &skin = ""); A_DELETE_COPY(ScrollArea) -- cgit v1.2.3-70-g09d2