Skip to content

Commit fe26e8d

Browse files
author
Matevz Morato
committed
Run clangformat with version 18
1 parent 531444f commit fe26e8d

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

include/depthai/pipeline/MessageQueue.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ class MessageQueue : public std::enable_shared_from_this<MessageQueue> {
4343
explicit MessageQueue(std::string name, unsigned int maxSize = 16, bool blocking = true);
4444

4545
MessageQueue(const MessageQueue& c)
46-
: enable_shared_from_this(c), queue(c.queue), name(c.name), callbacks(c.callbacks), uniqueCallbackId(c.uniqueCallbackId) {};
46+
: enable_shared_from_this(c), queue(c.queue), name(c.name), callbacks(c.callbacks), uniqueCallbackId(c.uniqueCallbackId){};
4747
MessageQueue(MessageQueue&& m) noexcept
4848
: enable_shared_from_this(m),
4949
queue(std::move(m.queue)),
5050
name(std::move(m.name)),
5151
callbacks(std::move(m.callbacks)),
52-
uniqueCallbackId(m.uniqueCallbackId) {};
52+
uniqueCallbackId(m.uniqueCallbackId){};
5353

5454
MessageQueue& operator=(const MessageQueue& c) {
5555
queue = c.queue;

include/depthai/utility/LockingQueue.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class LockingQueue {
2626
this->maxSize = maxSize;
2727
this->blocking = blocking;
2828
}
29-
LockingQueue(const LockingQueue& obj) : maxSize(obj.maxSize), blocking(obj.blocking), queue(obj.queue), destructed(obj.destructed) {};
30-
LockingQueue(LockingQueue&& obj) noexcept : maxSize(obj.maxSize), blocking(obj.blocking), queue(std::move(obj.queue)), destructed(obj.destructed) {};
29+
LockingQueue(const LockingQueue& obj) : maxSize(obj.maxSize), blocking(obj.blocking), queue(obj.queue), destructed(obj.destructed){};
30+
LockingQueue(LockingQueue&& obj) noexcept : maxSize(obj.maxSize), blocking(obj.blocking), queue(std::move(obj.queue)), destructed(obj.destructed){};
3131
LockingQueue& operator=(const LockingQueue& obj) {
3232
maxSize = obj.maxSize;
3333
blocking = obj.blocking;

include/depthai/utility/Memory.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ holder(std::move(holder)) {}
110110
// memory as interface
111111
class Memory {
112112
public:
113-
virtual ~Memory() {};
113+
virtual ~Memory(){};
114114
virtual span<std::uint8_t> getData() = 0;
115115
virtual span<const std::uint8_t> getData() const = 0;
116116
virtual std::size_t getMaxSize() const = 0;

src/pipeline/Node.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ Node::OutputMap::OutputMap(Node& parent, std::string name, Node::OutputDescripti
304304
}
305305
}
306306

307-
Node::OutputMap::OutputMap(Node& parent, Node::OutputDescription defaultOutput, bool ref) : OutputMap(parent, "", std::move(defaultOutput), ref) {};
307+
Node::OutputMap::OutputMap(Node& parent, Node::OutputDescription defaultOutput, bool ref) : OutputMap(parent, "", std::move(defaultOutput), ref){};
308308

309309
Node::Output& Node::OutputMap::operator[](const std::string& key) {
310310
if(count({name, key}) == 0) {
@@ -336,7 +336,7 @@ Node::InputMap::InputMap(Node& parent, std::string name, Node::InputDescription
336336
parent.setInputMapRefs(this);
337337
}
338338

339-
Node::InputMap::InputMap(Node& parent, Node::InputDescription description) : InputMap(parent, "", std::move(description)) {};
339+
Node::InputMap::InputMap(Node& parent, Node::InputDescription description) : InputMap(parent, "", std::move(description)){};
340340

341341
Node::Input& Node::InputMap::operator[](const std::string& key) {
342342
if(count({name, key}) == 0) {

src/pipeline/node/DetectionNetwork.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ namespace node {
2727
//--------------------------------------------------------------------
2828

2929
DetectionNetwork::DetectionNetwork(const std::shared_ptr<Device>& device)
30-
: DeviceNodeGroup(device), out{detectionParser->out}, outNetwork{neuralNetwork->out}, input{neuralNetwork->input}, passthrough{neuralNetwork->passthrough} {
31-
};
30+
: DeviceNodeGroup(device),
31+
out{detectionParser->out},
32+
outNetwork{neuralNetwork->out},
33+
input{neuralNetwork->input},
34+
passthrough{neuralNetwork->passthrough} {};
3235

3336
// -------------------------------------------------------------------
3437
// Neural Network API

0 commit comments

Comments
 (0)