fixed every known warning from cppcheck

done.
This commit is contained in:
Jan Schuffenhauer
2020-01-16 14:21:16 +01:00
parent b055c0b922
commit abe63d3862
3 changed files with 28 additions and 19 deletions

View File

@@ -1,8 +1,7 @@
#include "IntelliColorPicker.h"
IntelliColorPicker::IntelliColorPicker(){
firstColor = QColor(255,0,0,255);
secondColor = QColor(0,255,255,255);
initializeColors();
}
IntelliColorPicker::~IntelliColorPicker(){
@@ -28,3 +27,8 @@ void IntelliColorPicker::setFirstColor(QColor Color){
void IntelliColorPicker::setSecondColor(QColor Color){
this->secondColor = Color;
}
void IntelliColorPicker::initializeColors(){
this->firstColor = QColor(255,0,0,255);
this->secondColor = QColor(0,0,0,255);
}