summaryrefslogtreecommitdiff
path: root/src/qcam/viewfinder_qt.h
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2021-11-23 17:23:07 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-11-24 12:18:56 +0000
commit4f32b0815ee784ba2d91987c92f5d327b29c21bf (patch)
treee939effa30be15a0e1176052a81e97ea74941429 /src/qcam/viewfinder_qt.h
parentb3ff91a57d3ebd786798d6cef74e29a247e8d001 (diff)
qcam: Convert to pragma once
Remove the verbose #ifndef/#define/#endif pattern for maintaining header idempotency, and replace it with a simple #pragma once. This simplifies the headers, and prevents redundant changes when header files get moved. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Diffstat (limited to 'src/qcam/viewfinder_qt.h')
-rw-r--r--src/qcam/viewfinder_qt.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qcam/viewfinder_qt.h b/src/qcam/viewfinder_qt.h
index 756f3fa3..8c621452 100644
--- a/src/qcam/viewfinder_qt.h
+++ b/src/qcam/viewfinder_qt.h
@@ -4,8 +4,8 @@
*
* viewfinder_qt.h - qcam - QPainter-based ViewFinder
*/
-#ifndef __QCAM_VIEWFINDER_QT_H__
-#define __QCAM_VIEWFINDER_QT_H__
+
+#pragma once
#include <QIcon>
#include <QImage>
@@ -61,5 +61,3 @@ private:
QImage image_;
QMutex mutex_; /* Prevent concurrent access to image_ */
};
-
-#endif /* __QCAM_VIEWFINDER_QT_H__ */