summaryrefslogtreecommitdiff
path: root/vector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vector.cpp')
-rw-r--r--vector.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/vector.cpp b/vector.cpp
index 6c71991..3ab3e34 100644
--- a/vector.cpp
+++ b/vector.cpp
@@ -26,7 +26,7 @@ Vector2& Vector2::operator+=(const Vector2& v) {
return *this;
}
-Vector2& Vector2::operator+(const Vector2& v) {
+Vector2 Vector2::operator+(const Vector2& v) {
return Vector2(*this) += v;
}
@@ -36,7 +36,7 @@ Vector2& Vector2::operator-=(const Vector2& v) {
return *this;
}
-Vector2& Vector2::operator-(const Vector2& v) {
+Vector2 Vector2::operator-(const Vector2& v) {
return Vector2(*this) -= v;
}
@@ -70,7 +70,7 @@ Vector3& Vector3::operator+=(const Vector3& v) {
return *this;
}
-Vector3& Vector3::operator+(const Vector3& v) {
+Vector3 Vector3::operator+(const Vector3& v) {
return Vector3(*this) += v;
}
@@ -81,7 +81,7 @@ Vector3& Vector3::operator-=(const Vector3& v) {
return *this;
}
-Vector3& Vector3::operator-(const Vector3& v) {
+Vector3 Vector3::operator-(const Vector3& v) {
return Vector3(*this) -= v;
}
@@ -116,7 +116,7 @@ Vector4& Vector4::operator+=(const Vector4& v) {
return *this;
}
-Vector4& Vector4::operator+(const Vector4& v) {
+Vector4 Vector4::operator+(const Vector4& v) {
return Vector4(*this) += v;
}
@@ -128,6 +128,6 @@ Vector4& Vector4::operator-=(const Vector4& v) {
return *this;
}
-Vector4& Vector4::operator-(const Vector4& v) {
+Vector4 Vector4::operator-(const Vector4& v) {
return Vector4(*this) -= v;
}