Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Made some POINT parameters into const references.

  • Loading branch information...
commit 81cc80a556529405d2a15345b49824c7834fd1a1 1 parent ea7c50c
@ttencate authored
View
2  doc/todo.txt
@@ -6,8 +6,6 @@ Bugs:
- Search for TODO and do them.
Cosmetical:
-- eventToButton -> messageToButton
-- Check for POINT passed by value to worker constructors.
- Split resize class depending on mode.
- Name compilation units to match classes.
- Do a full code review.
View
2  src/move.cpp
@@ -3,7 +3,7 @@
#include "move.hpp"
#include "debug.hpp"
-MoveWorker::MoveWorker(POINT mousePos, HWND window)
+MoveWorker::MoveWorker(POINT const &mousePos, HWND window)
:
DeformWorker(mousePos, window)
{
View
2  src/move.hpp
@@ -15,7 +15,7 @@ class MoveWorker : public DeformWorker {
public:
- MoveWorker(POINT mousePos, HWND window);
+ MoveWorker(POINT const &mousePos, HWND window);
virtual void move(POINT const &mousePos);
View
2  src/movemax.cpp
@@ -1,7 +1,7 @@
#include "movemax.hpp"
#include "debug.hpp"
-MoveMaxWorker::MoveMaxWorker(POINT mousePos, HWND window)
+MoveMaxWorker::MoveMaxWorker(POINT const &mousePos, HWND window)
:
DeformWorker(mousePos, window),
d_currentMonitor(MonitorFromWindow(window, MONITOR_DEFAULTTONULL))
View
2  src/movemax.hpp
@@ -11,7 +11,7 @@ class MoveMaxWorker : public DeformWorker {
public:
- MoveMaxWorker(POINT mousePos, HWND window);
+ MoveMaxWorker(POINT const &mousePos, HWND window);
virtual void move(POINT const &mousePos);
View
2  src/resize.cpp
@@ -4,7 +4,7 @@
#include "debug.hpp"
#include "globals.hpp"
-ResizeWorker::ResizeWorker(POINT mousePos, HWND window)
+ResizeWorker::ResizeWorker(POINT const &mousePos, HWND window)
:
DeformWorker(mousePos, window)
{
View
2  src/resize.hpp
@@ -19,7 +19,7 @@ class ResizeWorker : public DeformWorker {
public:
- ResizeWorker(POINT mousePos, HWND parentWindow);
+ ResizeWorker(POINT const &mousePos, HWND parentWindow);
virtual void move(POINT const &mousePos);
Please sign in to comment.
Something went wrong with that request. Please try again.