From e0d14cf8d3c809a0a5291823d3a962a4835a8f6e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 9 Aug 2015 00:25:50 +0300 Subject: Add some missing checks to gui found by paranucker. --- src/gui/models/colormodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/models/colormodel.cpp') diff --git a/src/gui/models/colormodel.cpp b/src/gui/models/colormodel.cpp index a31b245c4..b1c07d52c 100644 --- a/src/gui/models/colormodel.cpp +++ b/src/gui/models/colormodel.cpp @@ -69,7 +69,7 @@ void ColorModel::add(const std::string &name, const Color *const color1, ColorModel *ColorModel::createDefault(const Widget2 *const widget) { - ColorModel *const model = new ColorModel(); + ColorModel *const model = new ColorModel; if (!widget) return model; // TRANSLATORS: color name -- cgit v1.2.3-70-g09d2