Permalink
Browse files

Made some POINT parameters into const references.

  • Loading branch information...
ttencate committed Jan 15, 2010
1 parent ea7c50c commit 81cc80a556529405d2a15345b49824c7834fd1a1
Showing with 6 additions and 8 deletions.
  1. +0 −2 doc/todo.txt
  2. +1 −1 src/move.cpp
  3. +1 −1 src/move.hpp
  4. +1 −1 src/movemax.cpp
  5. +1 −1 src/movemax.hpp
  6. +1 −1 src/resize.cpp
  7. +1 −1 src/resize.hpp
View
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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);

0 comments on commit 81cc80a

Please sign in to comment.