DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit e7c0e4f28644b38f72df4be85c719e84095fe18b
parent 28f7f8d21dea1e56a5c3bbc4992b4fb9e08fccd2
Author: falkTX <falktx@gmail.com>
Date:   Thu, 22 May 2014 23:09:31 +0100

Make some widget constructors explicit

Diffstat:
Mdgl/ImageButton.hpp | 10+++++-----
Mdgl/ImageKnob.hpp | 6+++---
Mdgl/ImageSlider.hpp | 6+++---
3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/dgl/ImageButton.hpp b/dgl/ImageButton.hpp @@ -34,11 +34,11 @@ public: virtual void imageButtonClicked(ImageButton* imageButton, int button) = 0; }; - ImageButton(Window& parent, const Image& image) noexcept; - ImageButton(Window& parent, const Image& imageNormal, const Image& imageHover, const Image& imageDown) noexcept; - ImageButton(Widget* widget, const Image& image) noexcept; - ImageButton(Widget* widget, const Image& imageNormal, const Image& imageHover, const Image& imageDown) noexcept; - ImageButton(const ImageButton& imageButton) noexcept; + explicit ImageButton(Window& parent, const Image& image) noexcept; + explicit ImageButton(Window& parent, const Image& imageNormal, const Image& imageHover, const Image& imageDown) noexcept; + explicit ImageButton(Widget* widget, const Image& image) noexcept; + explicit ImageButton(Widget* widget, const Image& imageNormal, const Image& imageHover, const Image& imageDown) noexcept; + explicit ImageButton(const ImageButton& imageButton) noexcept; void setCallback(Callback* callback) noexcept; diff --git a/dgl/ImageKnob.hpp b/dgl/ImageKnob.hpp @@ -41,9 +41,9 @@ public: virtual void imageKnobValueChanged(ImageKnob* imageKnob, float value) = 0; }; - ImageKnob(Window& parent, const Image& image, Orientation orientation = Vertical, int id = 0) noexcept; - ImageKnob(Widget* widget, const Image& image, Orientation orientation = Vertical, int id = 0) noexcept; - ImageKnob(const ImageKnob& imageKnob); + explicit ImageKnob(Window& parent, const Image& image, Orientation orientation = Vertical, int id = 0) noexcept; + explicit ImageKnob(Widget* widget, const Image& image, Orientation orientation = Vertical, int id = 0) noexcept; + explicit ImageKnob(const ImageKnob& imageKnob); ~ImageKnob() override; int getId() const noexcept; diff --git a/dgl/ImageSlider.hpp b/dgl/ImageSlider.hpp @@ -36,9 +36,9 @@ public: virtual void imageSliderValueChanged(ImageSlider* imageSlider, float value) = 0; }; - ImageSlider(Window& parent, const Image& image, int id = 0) noexcept; - ImageSlider(Widget* widget, const Image& image, int id = 0) noexcept; - ImageSlider(const ImageSlider& imageSlider) noexcept; + explicit ImageSlider(Window& parent, const Image& image, int id = 0) noexcept; + explicit ImageSlider(Widget* widget, const Image& image, int id = 0) noexcept; + explicit ImageSlider(const ImageSlider& imageSlider) noexcept; int getId() const noexcept; void setId(int id) noexcept;