From d5b4f5bdb49ff061d1541b169294fd70ab6bbf07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=B6ssie?= Date: Tue, 27 Dec 2016 20:20:19 +0100 Subject: [PATCH] Re-constify `wavelet.cc` (#3556) --- rtgui/wavelet.cc | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/rtgui/wavelet.cc b/rtgui/wavelet.cc index 1fe46f133..71f3235c6 100644 --- a/rtgui/wavelet.cc +++ b/rtgui/wavelet.cc @@ -256,7 +256,7 @@ Wavelet::Wavelet() : settingsVBox->pack_start(*levdirSubHBox); // Contrast - Gtk::VBox * levBox = Gtk::manage (new ToolParamBlock()); + Gtk::VBox* const levBox = Gtk::manage (new ToolParamBlock()); Gtk::HBox* const buttonBox = Gtk::manage (new Gtk::HBox(true, 10)); levBox->pack_start(*buttonBox, Gtk::PACK_SHRINK, 2); @@ -335,7 +335,7 @@ Wavelet::Wavelet() : levBox->pack_start(*contrastSHFrame); // Chromaticity - Gtk::VBox * chBox = Gtk::manage (new ToolParamBlock()); + Gtk::VBox* const chBox = Gtk::manage (new ToolParamBlock()); Gtk::Label* const labmch = Gtk::manage(new Gtk::Label(M("TP_WAVELET_CHTYPE") + ":")); Gtk::HBox* const ctboxch = Gtk::manage(new Gtk::HBox()); @@ -405,7 +405,7 @@ Wavelet::Wavelet() : } // Toning - Gtk::VBox * tonBox = Gtk::manage (new ToolParamBlock()); + Gtk::VBox* const tonBox = Gtk::manage (new ToolParamBlock()); opaCurveEditorG->setCurveListener (this); @@ -434,7 +434,7 @@ Wavelet::Wavelet() : tonBox->pack_start( *opacityCurveEditorG, Gtk::PACK_SHRINK, 2); // Denoise and Refine - Gtk::VBox * noiseBox = Gtk::manage (new ToolParamBlock()); + Gtk::VBox* const noiseBox = Gtk::manage (new ToolParamBlock()); linkedg->set_active (true); linkedgConn = linkedg->signal_toggled().connect( sigc::mem_fun(*this, &Wavelet::linkedgToggled) ); @@ -458,7 +458,7 @@ Wavelet::Wavelet() : noiseBox->pack_start( *level3noise, Gtk::PACK_SHRINK, 0); // Edge Sharpness - Gtk::VBox * edgBox = Gtk::manage (new ToolParamBlock()); + Gtk::VBox* const edgBox = Gtk::manage (new ToolParamBlock()); edgval->setAdjusterListener(this); edgBox->pack_start(*edgval); @@ -536,11 +536,9 @@ Wavelet::Wavelet() : edgedetectthr->set_tooltip_text (M("TP_WAVELET_EDGEDETECTTHR_TOOLTIP")); edgBox->pack_start(*edgedetectthr); - edgedetectthr2->setAdjusterListener (this); edgBox->pack_start(*edgedetectthr2); - edgBox->pack_start(*separatoredge, Gtk::PACK_SHRINK, 2); lipst->set_active (true); @@ -551,11 +549,9 @@ Wavelet::Wavelet() : edgesensi->setAdjusterListener (this); edgBox->pack_start(*edgesensi); - edgeampli->setAdjusterListener (this); edgBox->pack_start(*edgeampli); - Gtk::VBox* const ctboxES = Gtk::manage (new Gtk::VBox()); ctboxES->set_spacing(2); @@ -575,7 +571,7 @@ Wavelet::Wavelet() : edgBox->pack_start(*ctboxES); // Gamut - Gtk::VBox * conBox = Gtk::manage (new ToolParamBlock()); + Gtk::VBox* const conBox = Gtk::manage (new ToolParamBlock()); median->set_active (true); medianConn = median->signal_toggled().connect( sigc::mem_fun(*this, &Wavelet::medianToggled) ); @@ -625,7 +621,7 @@ Wavelet::Wavelet() : conBox->pack_start(*avoid); // Residual Image - Gtk::VBox * resBox = Gtk::manage (new ToolParamBlock()); + Gtk::VBox* const resBox = Gtk::manage (new ToolParamBlock()); rescon->setAdjusterListener (this); resBox->pack_start(*rescon, Gtk::PACK_SHRINK); @@ -826,7 +822,7 @@ Wavelet::Wavelet() : tmr->set_tooltip_text (M("TP_WAVELET_BALCHRO_TOOLTIP")); tmrConn = tmr->signal_toggled().connect( sigc::mem_fun(*this, &Wavelet::tmrToggled) ); - Gtk::VBox * finalBox = Gtk::manage (new ToolParamBlock()); + Gtk::VBox* const finalBox = Gtk::manage (new ToolParamBlock()); finalBox->pack_start (*ctboxBA); finalBox->pack_start(*balance);