[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdegraphics/kolourpaint/tools/selection
From: Clarence Dang <dang () kde ! org>
Date: 2006-11-26 7:09:23
Message-ID: 1164524963.506816.8986.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 607888 by dang:
More "T" -> "const T &" args
M +5 -3 kptoolselection.cpp
M +3 -3 kptoolselection.h
--- trunk/KDE/kdegraphics/kolourpaint/tools/selection/kptoolselection.cpp #607887:607888
@@ -515,7 +515,7 @@
}
// private
-void kpToolSelection::create (QPoint thisPoint, QRect normalizedRect)
+void kpToolSelection::create (const QPoint &thisPoint, const QRect &normalizedRect)
{
#if DEBUG_KP_TOOL_SELECTION && 1
kDebug () << "\tnot moving - resizing rect to" << normalizedRect
@@ -600,7 +600,7 @@
}
// private
-void kpToolSelection::move (QPoint thisPoint, QRect /*normalizedRect*/)
+void kpToolSelection::move (const QPoint &thisPoint, const QRect &/*normalizedRect*/)
{
#if DEBUG_KP_TOOL_SELECTION && 1
kDebug () << "\tmoving selection" << endl;
@@ -826,7 +826,9 @@
}
// private
-void kpToolSelection::resizeScale (QPoint thisPoint, QRect /*normalizedRect*/)
+void kpToolSelection::resizeScale (
+ const QPoint &thisPoint,
+ const QRect &/*normalizedRect*/)
{
#if DEBUG_KP_TOOL_SELECTION && 1
kDebug () << "\tresize/scale" << endl;
--- trunk/KDE/kdegraphics/kolourpaint/tools/selection/kptoolselection.h #607887:607888
@@ -129,8 +129,8 @@
const QPoint &accidentalDragAdjustedPoint,
const QRect &normalizedRect) = 0;
private:
- void create (QPoint thisPoint, QRect normalizedRect);
- void move (QPoint thisPoint, QRect normalizedRect);
+ void create (const QPoint &thisPoint, const QRect &normalizedRect);
+ void move (const QPoint &thisPoint, const QRect &normalizedRect);
// resizeScaleCalculateNewSelectionPosSize() calls us with what the
// <newWidth>x<newHeight> should be, but before any aspect maintenance
@@ -154,7 +154,7 @@
const kpSelection &originalSelection,
int *newX, int *newY,
int *newWidth, int *newHeight);
- void resizeScale (QPoint thisPoint, QRect normalizedRect);
+ void resizeScale (const QPoint &thisPoint, const QRect &normalizedRect);
public:
virtual void draw (const QPoint &thisPoint, const QPoint &lastPoint,
const QRect &normalizedRect);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic