Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests/resources/formatter/preview')
-rw-r--r--core/org.eclipse.cdt.ui.tests/resources/formatter/preview/After.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/org.eclipse.cdt.ui.tests/resources/formatter/preview/After.cpp b/core/org.eclipse.cdt.ui.tests/resources/formatter/preview/After.cpp
index 4f07ae9de88..e712f9feab8 100644
--- a/core/org.eclipse.cdt.ui.tests/resources/formatter/preview/After.cpp
+++ b/core/org.eclipse.cdt.ui.tests/resources/formatter/preview/After.cpp
@@ -7,17 +7,17 @@ public:
Point(double x, double y) :
x(x), y(y) {
}
- double distance(const Point& other) const;
- int compareX(const Point& other) const;
+ double distance(const Point &other) const;
+ int compareX(const Point &other) const;
double x;
double y;
};
-double Point::distance(const Point& other) const {
+double Point::distance(const Point &other) const {
double dx = x - other.x;
double dy = y - other.y;
return sqrt(dx * dx + dy * dy);
}
-int Point::compareX(const Point& other) const {
+int Point::compareX(const Point &other) const {
if (x < other.x) {
return -1;
} else if (x > other.x) {

Back to the top