Fixed variable declaration with empty parentheses.
The variable was being interpreted as a function because of the empty
parentheses.
Change-Id: I1d8c3a26b87b8eb037b5a195fe00502f84d8373f
Author: Edwin Vane <edwin.vane@intel.com>
Reviewed-by: Kevin Schoedel <kevin.p.schoedel@intel.com>
diff --git a/apps/CtsVerifier/include/colorchecker/vec2.h b/apps/CtsVerifier/include/colorchecker/vec2.h
index 9de614c..e58255d 100644
--- a/apps/CtsVerifier/include/colorchecker/vec2.h
+++ b/apps/CtsVerifier/include/colorchecker/vec2.h
@@ -41,12 +41,9 @@
}
inline Vec2<float> operator/ (const int param) const {
- Vec2<float> temp();
assert(param != 0);
- temp.set(static_cast<float>(mX) / static_cast<float>(param),
- static_cast<float>(mY) / static_cast<float>(param));
-
- return temp;
+ return Vec2<float>(static_cast<float>(mX) / static_cast<float>(param),
+ static_cast<float>(mY) / static_cast<float>(param));
}
template <class U>