From 11a02af132567b6ef709ce0b20113375dcad5db7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 14 May 2015 03:09:18 +0300 Subject: Remove copy constructor from ClipRect class. --- src/gui/cliprect.cpp | 9 --------- src/gui/cliprect.h | 9 +-------- src/test/testlauncher.cpp | 2 ++ 3 files changed, 3 insertions(+), 17 deletions(-) (limited to 'src') diff --git a/src/gui/cliprect.cpp b/src/gui/cliprect.cpp index bb50b9986..4094a711a 100644 --- a/src/gui/cliprect.cpp +++ b/src/gui/cliprect.cpp @@ -84,12 +84,3 @@ ClipRect::ClipRect(const int x0, const int y0, yOffset(yOffset0) { } - -const ClipRect& ClipRect::operator=(const Rect& other) -{ - x = other.x; - y = other.y; - width = other.width; - height = other.height; - return *this; -} diff --git a/src/gui/cliprect.h b/src/gui/cliprect.h index 44ab6f01b..c4ef23600 100644 --- a/src/gui/cliprect.h +++ b/src/gui/cliprect.h @@ -103,14 +103,7 @@ class ClipRect final : public Rect const int xOffset0, const int yOffset0); - /** - * Copy constructor. Copies x, y, width and height - * field from a rectangle to a clip rectangle. - * - * @param other The rectangle to copy data from. - * @returns A clip rectangle with data copyied from a rectangle. - */ - const ClipRect& operator=(const Rect& other); + A_DELETE_COPY(ClipRect) /** * Holds the x offset of the x coordinate. diff --git a/src/test/testlauncher.cpp b/src/test/testlauncher.cpp index ffe16e8e7..4f844a7cc 100644 --- a/src/test/testlauncher.cpp +++ b/src/test/testlauncher.cpp @@ -504,6 +504,7 @@ int TestLauncher::testStackSpeed() #if defined __linux__ || defined __linux +/* for (int d = 0; d < 100; d ++) { for (int f = 0; f < sz; f ++) @@ -571,6 +572,7 @@ int TestLauncher::testStackSpeed() printf("debug: %d\n", stack2.top().xOffset); printf("my time: %ld\n", diff); +*/ #endif return 0; } -- cgit v1.2.3-60-g2f50