Skip to content

Commit

Permalink
Silence of the cppcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Emdek committed Apr 1, 2015
1 parent a4ac304 commit 800677d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions 3rdparty/mousegestures/MouseGestures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ Recognizer::Recognizer(int minimumMovement, double minimumMatch)
d->minimumMatch = minimumMatch;
}

Recognizer::Recognizer(const Recognizer &other)
{
d = new Private();
d->gestures = other.d->gestures;
d->minimumMovement2 = other.d->minimumMovement2;
d->minimumMatch = other.d->minimumMatch;
}

Recognizer::~Recognizer()
{
delete d;
Expand Down
3 changes: 2 additions & 1 deletion 3rdparty/mousegestures/MouseGestures.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ class Recognizer
{

public:
Recognizer(int minimumMovement = 5, double minimumMatch = 0.9);
explicit Recognizer(int minimumMovement = 5, double minimumMatch = 0.9);
Recognizer(const Recognizer &other);
~Recognizer();

void startGesture(int x, int y);
Expand Down

0 comments on commit 800677d

Please sign in to comment.