cppcheck: more explicit contructors
This commit is contained in:
@@ -468,7 +468,7 @@ protected:
|
|||||||
void NURBS_set ();
|
void NURBS_set ();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DiagonalCurve (const std::vector<double>& points, int ppn = CURVES_MIN_POLY_POINTS);
|
explicit DiagonalCurve (const std::vector<double>& points, int ppn = CURVES_MIN_POLY_POINTS);
|
||||||
~DiagonalCurve () override;
|
~DiagonalCurve () override;
|
||||||
|
|
||||||
double getVal (double t) const override;
|
double getVal (double t) const override;
|
||||||
@@ -493,7 +493,7 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
FlatCurve (const std::vector<double>& points, bool isPeriodic = true, int ppn = CURVES_MIN_POLY_POINTS);
|
explicit FlatCurve (const std::vector<double>& points, bool isPeriodic = true, int ppn = CURVES_MIN_POLY_POINTS);
|
||||||
~FlatCurve () override;
|
~FlatCurve () override;
|
||||||
|
|
||||||
double getVal (double t) const override;
|
double getVal (double t) const override;
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ private:
|
|||||||
unsigned int dcrawFrameCount;
|
unsigned int dcrawFrameCount;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FramesData (const Glib::ustring& fname, std::unique_ptr<RawMetaDataLocation> rml = nullptr, bool firstFrameOnly = false);
|
explicit FramesData (const Glib::ustring& fname, std::unique_ptr<RawMetaDataLocation> rml = nullptr, bool firstFrameOnly = false);
|
||||||
~FramesData () override;
|
~FramesData () override;
|
||||||
|
|
||||||
void setDCRawFrameCount (unsigned int frameCount);
|
void setDCRawFrameCount (unsigned int frameCount);
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ public:
|
|||||||
|
|
||||||
double lumimul[3];
|
double lumimul[3];
|
||||||
|
|
||||||
ImProcFunctions(const ProcParams* iparams, bool imultiThread = true)
|
explicit ImProcFunctions(const ProcParams* iparams, bool imultiThread = true)
|
||||||
: monitorTransform(nullptr), params(iparams), scale(1), multiThread(imultiThread), lumimul{} {}
|
: monitorTransform(nullptr), params(iparams), scale(1), multiThread(imultiThread), lumimul{} {}
|
||||||
~ImProcFunctions();
|
~ImProcFunctions();
|
||||||
bool needsLuminanceOnly()
|
bool needsLuminanceOnly()
|
||||||
|
|||||||
@@ -1634,8 +1634,8 @@ class PartialProfile :
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PartialProfile(bool createInstance = false, bool paramsEditedValue = false);
|
PartialProfile(bool createInstance = false, bool paramsEditedValue = false);
|
||||||
PartialProfile(ProcParams* pp, ParamsEdited* pe = nullptr, bool fullCopy = false);
|
explicit PartialProfile(ProcParams* pp, ParamsEdited* pe = nullptr, bool fullCopy = false);
|
||||||
PartialProfile(const ProcParams* pp, const ParamsEdited* pe = nullptr);
|
explicit PartialProfile(const ProcParams* pp, const ParamsEdited* pe = nullptr);
|
||||||
void deleteInstance();
|
void deleteInstance();
|
||||||
void clearGeneral();
|
void clearGeneral();
|
||||||
int load(const Glib::ustring& fName);
|
int load(const Glib::ustring& fName);
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ public:
|
|||||||
* dialogs.
|
* dialogs.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
CurveEditorGroup(Glib::ustring& curveDir, Glib::ustring groupLabel = "");
|
explicit CurveEditorGroup(Glib::ustring& curveDir, Glib::ustring groupLabel = "");
|
||||||
~CurveEditorGroup() override;
|
~CurveEditorGroup() override;
|
||||||
void newLine();
|
void newLine();
|
||||||
void curveListComplete();
|
void curveListComplete();
|
||||||
|
|||||||
@@ -400,7 +400,7 @@ protected:
|
|||||||
void set_none();
|
void set_none();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MyFileChooserButton(const Glib::ustring &title, Gtk::FileChooserAction action=Gtk::FILE_CHOOSER_ACTION_OPEN);
|
explicit MyFileChooserButton(const Glib::ustring &title, Gtk::FileChooserAction action=Gtk::FILE_CHOOSER_ACTION_OPEN);
|
||||||
|
|
||||||
sigc::signal<void> &signal_selection_changed();
|
sigc::signal<void> &signal_selection_changed();
|
||||||
sigc::signal<void> &signal_file_set();
|
sigc::signal<void> &signal_file_set();
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ public:
|
|||||||
type_signal_item_selected signal_item_selected();
|
type_signal_item_selected signal_item_selected();
|
||||||
Gtk::Grid* buttonGroup; // this is the widget to be packed
|
Gtk::Grid* buttonGroup; // this is the widget to be packed
|
||||||
|
|
||||||
PopUpCommon (Gtk::Button* button, const Glib::ustring& label = "");
|
explicit PopUpCommon (Gtk::Button* button, const Glib::ustring& label = "");
|
||||||
virtual ~PopUpCommon ();
|
virtual ~PopUpCommon ();
|
||||||
bool addEntry (const Glib::ustring& fileName, const Glib::ustring& label);
|
bool addEntry (const Glib::ustring& fileName, const Glib::ustring& label);
|
||||||
int getEntryCount () const;
|
int getEntryCount () const;
|
||||||
|
|||||||
@@ -38,11 +38,11 @@ protected:
|
|||||||
public:
|
public:
|
||||||
RTImage ();
|
RTImage ();
|
||||||
RTImage (RTImage &other);
|
RTImage (RTImage &other);
|
||||||
RTImage (Glib::RefPtr<Gdk::Pixbuf> &pixbuf);
|
explicit RTImage (Glib::RefPtr<Gdk::Pixbuf> &pixbuf);
|
||||||
RTImage (Cairo::RefPtr<Cairo::ImageSurface> &surf);
|
explicit RTImage (Cairo::RefPtr<Cairo::ImageSurface> &surf);
|
||||||
RTImage(Cairo::RefPtr<Cairo::ImageSurface> other);
|
explicit RTImage(Cairo::RefPtr<Cairo::ImageSurface> other);
|
||||||
RTImage (Glib::RefPtr<RTImage> &other);
|
explicit RTImage (Glib::RefPtr<RTImage> &other);
|
||||||
RTImage (const Glib::ustring& fileName, const Glib::ustring& rtlFileName = Glib::ustring());
|
explicit RTImage (const Glib::ustring& fileName, const Glib::ustring& rtlFileName = Glib::ustring());
|
||||||
|
|
||||||
void setImage (const Glib::ustring& fileName, const Glib::ustring& rtlFileName = Glib::ustring());
|
void setImage (const Glib::ustring& fileName, const Glib::ustring& rtlFileName = Glib::ustring());
|
||||||
void changeImage (const Glib::ustring& imageName);
|
void changeImage (const Glib::ustring& imageName);
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ class RTSurface :
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RTSurface();
|
RTSurface();
|
||||||
RTSurface(const Glib::ustring& fileName, const Glib::ustring& rtlFileName = {});
|
explicit RTSurface(const Glib::ustring& fileName, const Glib::ustring& rtlFileName = {});
|
||||||
|
|
||||||
void setImage(const Glib::ustring& fileName, const Glib::ustring& rtlFileName = {});
|
void setImage(const Glib::ustring& fileName, const Glib::ustring& rtlFileName = {});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user