summaryrefslogtreecommitdiff
path: root/test/geometry.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-04-29 03:59:45 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-05-04 14:11:25 +0300
commit37958dfd713dd00d4a71a78a6a45f8016ad82e65 (patch)
treec8f958dc5a9877d6d6afe95bcf8e960e3ca1f722 /test/geometry.cpp
parent4f1d1a48fe7ebe1282d7608a59cb059e1367e584 (diff)
libcamera: Replace toString with operator<<() for geometry classes
Now that geometry classes implement the stream formatting operator<<(), use it instead of the toString() function. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'test/geometry.cpp')
-rw-r--r--test/geometry.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/geometry.cpp b/test/geometry.cpp
index 51256924..008d51ea 100644
--- a/test/geometry.cpp
+++ b/test/geometry.cpp
@@ -25,9 +25,7 @@ protected:
bool result = op(lhs, rhs);
if (result != expect) {
- cout << lhs.toString()
- << opName << " "
- << rhs.toString()
+ cout << lhs << opName << " " << rhs
<< "test failed" << std::endl;
return false;
}