diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-04-29 03:59:45 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-05-04 14:11:33 +0300 |
commit | 8a845ab078c3fe12ac4edd16c8cbac5b7ec03b98 (patch) | |
tree | 945c6a147ed76a1f09b36ddc06fbdb44b221f970 /src/qcam | |
parent | d5d6dbe85cf270aee7c956429a5a692feca3900f (diff) |
libcamera: Replace toString with operator<<() for format classes
Now that format 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>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/qcam')
-rw-r--r-- | src/qcam/viewfinder_qt.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qcam/viewfinder_qt.cpp b/src/qcam/viewfinder_qt.cpp index a05c75ed..6844f998 100644 --- a/src/qcam/viewfinder_qt.cpp +++ b/src/qcam/viewfinder_qt.cpp @@ -67,8 +67,7 @@ int ViewFinderQt::setFormat(const libcamera::PixelFormat &format, image_ = QImage(size, QImage::Format_RGB32); - qInfo() << "Using software format conversion from" - << format.toString().c_str(); + qInfo() << "Using software format conversion from" << format; } else { qInfo() << "Zero-copy enabled"; } |