Commit 04cd7f49 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed uninitialized members in color translators (cppcheck-fixes)

parent 08f6208e
......@@ -84,7 +84,13 @@ class ACGDLLEXPORT ColorTranslator
public:
/// Default constructor.
ColorTranslator() : initialized_(false) {};
ColorTranslator() : initialized_(false),
red_bits_(0), green_bits_(0), blue_bits_(0), alpha_bits_(0),
red_mask_(0), green_mask_(0), blue_mask_(0), alpha_mask_(0),
red_shift_(0), green_shift_(0), blue_shift_(0), alpha_shift_(0),
red_round_(0), green_round_(0), blue_round_(0), alpha_round_(0)
{};
/// Destructor.
~ColorTranslator() {};
......
......@@ -88,8 +88,12 @@ class ACGDLLEXPORT QtColorTranslator
public:
/// Default constructor.
QtColorTranslator()
: initialized_(false) {};
QtColorTranslator() : initialized_(false),
red_bits_(0), green_bits_(0), blue_bits_(0),
red_mask_(0), green_mask_(0), blue_mask_(0),
red_shift_(0), green_shift_(0), blue_shift_(0),
red_round_(0), green_round_(0), blue_round_(0)
{};
/// construct with QGLcontext
QtColorTranslator(QGLContext& _context)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment