Cppcheck: Fixed some issues found by Flössie during review of my changes
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
#include "ilabel.h"
|
||||
|
||||
ILabel::ILabel (Glib::ustring lab) : label(lab) {}
|
||||
ILabel::ILabel (const Glib::ustring &lab) : label(lab) {}
|
||||
|
||||
void ILabel::on_realize()
|
||||
{
|
||||
|
@@ -27,7 +27,7 @@ class ILabel : public Gtk::DrawingArea
|
||||
Glib::ustring label;
|
||||
|
||||
public:
|
||||
explicit ILabel (Glib::ustring lab);
|
||||
explicit ILabel (const Glib::ustring &lab);
|
||||
bool on_expose_event(GdkEventExpose* event);
|
||||
void on_realize();
|
||||
void on_style_changed (const Glib::RefPtr<Gtk::Style>& style);
|
||||
|
@@ -20,7 +20,7 @@
|
||||
#include "multilangmgr.h"
|
||||
#include "paramsedited.h"
|
||||
|
||||
PartialPasteDlg::PartialPasteDlg (Glib::ustring title)
|
||||
PartialPasteDlg::PartialPasteDlg (const Glib::ustring &title)
|
||||
{
|
||||
|
||||
set_modal (true);
|
||||
|
@@ -132,7 +132,7 @@ public:
|
||||
sigc::connection raw_caredConn, raw_cablueConn, raw_ca_autocorrectConn, raw_hotpix_filtConn, raw_deadpix_filtConn, raw_linenoiseConn, raw_greenthreshConn, raw_ccStepsConn, raw_methodConn, raw_dcb_iterationsConn, raw_lmmse_iterationsConn, raw_dcb_enhanceConn, raw_exposConn, raw_preserConn, raw_blackConn;
|
||||
|
||||
public:
|
||||
explicit PartialPasteDlg (Glib::ustring title);
|
||||
explicit PartialPasteDlg (const Glib::ustring &title);
|
||||
|
||||
void applyPaste (rtengine::procparams::ProcParams* dstPP, ParamsEdited* dstPE, const rtengine::procparams::ProcParams* srcPP, const ParamsEdited* srcPE = NULL);
|
||||
|
||||
|
@@ -22,7 +22,7 @@
|
||||
#include "rtimage.h"
|
||||
|
||||
extern Options options;
|
||||
SaveAsDialog::SaveAsDialog (Glib::ustring initialDir)
|
||||
SaveAsDialog::SaveAsDialog (const Glib::ustring &initialDir)
|
||||
{
|
||||
|
||||
set_title(M("GENERAL_SAVE"));
|
||||
|
@@ -45,7 +45,7 @@ protected:
|
||||
void putToQueueClicked ();
|
||||
|
||||
public:
|
||||
explicit SaveAsDialog (Glib::ustring initialDir);
|
||||
explicit SaveAsDialog (const Glib::ustring &initialDir);
|
||||
|
||||
Glib::ustring getFileName ();
|
||||
Glib::ustring getDirectory ();
|
||||
|
Reference in New Issue
Block a user