summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/include/media_object.h10
-rw-r--r--src/libcamera/media_device.cpp4
-rw-r--r--src/libcamera/message.cpp2
3 files changed, 9 insertions, 7 deletions
diff --git a/src/libcamera/include/media_object.h b/src/libcamera/include/media_object.h
index 2a3ffc06..748eafdc 100644
--- a/src/libcamera/include/media_object.h
+++ b/src/libcamera/include/media_object.h
@@ -27,9 +27,11 @@ public:
protected:
friend class MediaDevice;
- MediaObject(MediaDevice *dev, unsigned int id) :
- dev_(dev), id_(id) { }
- virtual ~MediaObject() { }
+ MediaObject(MediaDevice *dev, unsigned int id)
+ : dev_(dev), id_(id)
+ {
+ }
+ virtual ~MediaObject() {}
MediaDevice *dev_;
unsigned int id_;
@@ -49,7 +51,7 @@ private:
MediaLink(const struct media_v2_link *link,
MediaPad *source, MediaPad *sink);
MediaLink(const MediaLink &) = delete;
- ~MediaLink() { }
+ ~MediaLink() {}
MediaPad *source_;
MediaPad *sink_;
diff --git a/src/libcamera/media_device.cpp b/src/libcamera/media_device.cpp
index 0d6630fb..e1ae34f8 100644
--- a/src/libcamera/media_device.cpp
+++ b/src/libcamera/media_device.cpp
@@ -199,7 +199,7 @@ void MediaDevice::unlock()
*/
int MediaDevice::populate()
{
- struct media_v2_topology topology = { };
+ struct media_v2_topology topology = {};
struct media_v2_entity *ents = nullptr;
struct media_v2_interface *interfaces = nullptr;
struct media_v2_link *links = nullptr;
@@ -767,7 +767,7 @@ void MediaDevice::fixupEntityFlags(struct media_v2_entity *entity)
*/
int MediaDevice::setupLink(const MediaLink *link, unsigned int flags)
{
- struct media_link_desc linkDesc = { };
+ struct media_link_desc linkDesc = {};
MediaPad *source = link->source();
MediaPad *sink = link->sink();
diff --git a/src/libcamera/message.cpp b/src/libcamera/message.cpp
index c5478953..c35bb33d 100644
--- a/src/libcamera/message.cpp
+++ b/src/libcamera/message.cpp
@@ -93,7 +93,7 @@ Message::~Message()
* class MyCustomMessage : public Message
* {
* public:
- * MyCustomMessage() : Message(type()) { }
+ * MyCustomMessage() : Message(type()) {}
*
* static Message::Type type()
* {