Fix cppcheck warnings
This commit is contained in:
@@ -710,11 +710,13 @@ void PerspCorrection::setCamBasedEventsActive(bool active)
|
||||
|
||||
ControlLineManager::ControlLineManager():
|
||||
EditSubscriber(ET_OBJECTS),
|
||||
canvas_area(new Rectangle()),
|
||||
cursor(CSCrosshair),
|
||||
draw_mode(false),
|
||||
drawing_line(false),
|
||||
prev_obj(-1),
|
||||
selected_object(-1)
|
||||
{
|
||||
canvas_area = std::unique_ptr<Rectangle>(new Rectangle());
|
||||
canvas_area->filled = true;
|
||||
canvas_area->topLeft = Coord(0, 0);
|
||||
mouseOverGeometry.push_back(canvas_area.get());
|
||||
|
@@ -47,7 +47,7 @@ protected:
|
||||
std::vector<std::unique_ptr<ControlLine>> control_lines;
|
||||
CursorShape cursor;
|
||||
bool draw_mode;
|
||||
bool drawing_line = false;
|
||||
bool drawing_line;
|
||||
Cairo::RefPtr<RTSurface> line_icon_h, line_icon_v;
|
||||
Cairo::RefPtr<RTSurface> line_icon_h_prelight, line_icon_v_prelight;
|
||||
int prev_obj;
|
||||
@@ -194,6 +194,6 @@ protected:
|
||||
PerspCorrection* tool;
|
||||
|
||||
public:
|
||||
LinesCallbacks(PerspCorrection* tool);
|
||||
explicit LinesCallbacks(PerspCorrection* tool);
|
||||
void switchOffEditMode (void) override;
|
||||
};
|
||||
|
Reference in New Issue
Block a user