Fix cppcheck warnings for uninitialized variables

This commit is contained in:
Lawrence Lee
2020-09-13 12:33:25 -07:00
parent c03efe4878
commit af29bf84e6
2 changed files with 9 additions and 1 deletions

View File

@@ -130,10 +130,16 @@ ImProcCoordinator::ImProcCoordinator() :
histLRETI(256),
hist_lrgb_dirty(false),
hist_raw_dirty(false),
vectorscopeScale(0),
vectorscope_hc_dirty(false),
vectorscope_hs_dirty(false),
vectorscope_hc(VECTORSCOPE_SIZE, VECTORSCOPE_SIZE),
vectorscope_hs(VECTORSCOPE_SIZE, VECTORSCOPE_SIZE),
waveformScale(0),
waveform_dirty(false),
waveformRed(0, 0),
waveformGreen(0, 0),
waveformBlue(0, 0),

View File

@@ -1061,7 +1061,9 @@ HistogramArea::HistogramArea (DrawModeListener *fml) :
needRed(options.histogramRed), needGreen(options.histogramGreen), needBlue(options.histogramBlue),
needLuma(options.histogramLuma), needChroma(options.histogramChroma),
isPressed(false), movingPosition(0.0),
pointer_red(-1), pointer_green(-1), pointer_blue(-1)
needPointer(false),
pointer_red(-1), pointer_green(-1), pointer_blue(-1),
pointer_a(0), pointer_b(0)
{
rhist(256);