From 44381dbda9dbf8d20894789fe8e3ea941b70a1d0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 18 Aug 2022 01:20:27 -0400 Subject: Use default member initialization --- src/server/EnginePort.hpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/server/EnginePort.hpp') diff --git a/src/server/EnginePort.hpp b/src/server/EnginePort.hpp index ecfe59b3..d6e67f1e 100644 --- a/src/server/EnginePort.hpp +++ b/src/server/EnginePort.hpp @@ -40,9 +40,6 @@ class EnginePort : public raul::Noncopyable public: explicit EnginePort(DuplexPort* port) : _graph_port(port) - , _buffer(nullptr) - , _handle(nullptr) - , _driver_index(0) {} void set_buffer(void* buf) { _buffer = buf; } @@ -57,9 +54,9 @@ public: protected: DuplexPort* _graph_port; - void* _buffer; - void* _handle; - uint32_t _driver_index; + void* _buffer{nullptr}; + void* _handle{nullptr}; + uint32_t _driver_index{0}; }; } // namespace server -- cgit v1.2.1