Fix some coverity issues
This commit is contained in:
@@ -41,7 +41,7 @@ static Glib::ustring makeFolderLabel(Glib::ustring path)
|
||||
return path;
|
||||
}
|
||||
|
||||
BatchQueuePanel::BatchQueuePanel (FileCatalog* aFileCatalog)
|
||||
BatchQueuePanel::BatchQueuePanel (FileCatalog* aFileCatalog) : parent(nullptr)
|
||||
{
|
||||
|
||||
batchQueue = Gtk::manage( new BatchQueue(aFileCatalog) );
|
||||
|
||||
@@ -40,7 +40,7 @@ void Axis::setValues(Glib::ustring label, unsigned int decimal, double increment
|
||||
this->rangeUpperBound = valMax;
|
||||
}
|
||||
|
||||
CoordinateAdjuster::AxisAdjuster::AxisAdjuster(CoordinateAdjuster *parent, const Axis *axis, char index) : idx(index), parent(parent)
|
||||
CoordinateAdjuster::AxisAdjuster::AxisAdjuster(CoordinateAdjuster *parent, const Axis *axis, char index) : idx(index), parent(parent), rangeLowerBound(0.f), rangeUpperBound(0.f)
|
||||
{
|
||||
label = Gtk::manage( new Gtk::Label(axis->label) );
|
||||
spinButton = Gtk::manage( new Gtk::SpinButton() );
|
||||
|
||||
@@ -54,7 +54,7 @@ int notifyListenerUI (void* data)
|
||||
|
||||
}
|
||||
|
||||
Crop::Crop (): FoldableToolPanel(this, "crop", M("TP_CROP_LABEL"), false, true)
|
||||
Crop::Crop (): FoldableToolPanel(this, "crop", M("TP_CROP_LABEL"), false, true), opt(0), wDirty(true), hDirty(true), xDirty(true), yDirty(true), lastFixRatio(true)
|
||||
{
|
||||
|
||||
clistener = nullptr;
|
||||
|
||||
@@ -26,7 +26,7 @@ using namespace rtengine::procparams;
|
||||
|
||||
Glib::ustring eventDescrArray[NUMOFEVENTS];
|
||||
|
||||
History::History (bool bookmarkSupport) : blistener(nullptr), tpc (nullptr), bmnum (1)
|
||||
History::History (bool bookmarkSupport) : historyVPaned(nullptr), blistener(nullptr), tpc (nullptr), bmnum (1)
|
||||
{
|
||||
|
||||
blistenerLock = false; // sets default that the Before preview will not be locked
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "../rtengine/refreshmap.h"
|
||||
#include "options.h"
|
||||
|
||||
ImageArea::ImageArea (ImageAreaPanel* p) : parent(p), firstOpen(true)
|
||||
ImageArea::ImageArea (ImageAreaPanel* p) : parent(p), firstOpen(true), fullImageWidth(0), fullImageHeight(0)
|
||||
{
|
||||
|
||||
infotext = "";
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include <cstring>
|
||||
#include <gdkmm/types.h>
|
||||
|
||||
MyCurve::MyCurve () : pipetteR(-1.f), pipetteG(-1.f), pipetteB(-1.f), pipetteVal(-1.f), listener(nullptr), cursor_type( CSArrow)
|
||||
MyCurve::MyCurve () : pipetteR(-1.f), pipetteG(-1.f), pipetteB(-1.f), pipetteVal(-1.f), listener(nullptr), cursor_type(CSArrow), graphW(0), graphH(0), mod_type(Gdk::MODIFIER_MASK), cursorX(0), cursorY(0), snapToMinDistX(0.0), snapToMinDistY(0.0), snapToValX(0.0), snapToValY(0.0)
|
||||
{
|
||||
|
||||
graphX = get_allocation().get_width() - RADIUS * 2;
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include <cstring>
|
||||
#include <gdkmm/types.h>
|
||||
|
||||
MyDiagonalCurve::MyDiagonalCurve () : activeParam(-1), bghistvalid(false)
|
||||
MyDiagonalCurve::MyDiagonalCurve () : closest_point(0), clampedX(0.0), clampedY(0.0), deltaX(0.0), deltaY(0.0), distanceX(0.0), distanceY(0.0), ugpX(0.0), ugpY(0.0), activeParam(-1), bghistvalid(false)
|
||||
{
|
||||
|
||||
graphW = get_allocation().get_width() - RADIUS * 2;
|
||||
|
||||
@@ -101,8 +101,6 @@ public:
|
||||
Gtk::CheckButton* raw_black;
|
||||
Gtk::CheckButton* raw_ca_autocorrect;
|
||||
Gtk::CheckButton* raw_caredblue;
|
||||
Gtk::CheckButton* raw_cablue;
|
||||
Gtk::CheckButton* raw_caautostrength;
|
||||
Gtk::CheckButton* raw_hotpix_filt;
|
||||
Gtk::CheckButton* raw_deadpix_filt;
|
||||
Gtk::CheckButton* raw_linenoise;
|
||||
|
||||
@@ -822,7 +822,7 @@ void Thumbnail::_loadThumbnail(bool firstTrial)
|
||||
tpp->init ();
|
||||
}
|
||||
|
||||
if (!initial_ && tpp) {
|
||||
if (!initial_) {
|
||||
tw = tpp->getImageWidth (getProcParamsU(), th, imgRatio); // this might return 0 if image was just building
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user