From d0854ae84b9041a9a5997fc82a088df5c4cfb206 Mon Sep 17 00:00:00 2001 From: "J.A. de Jong - Redu-Sone B.V., ASCEE V.O.F" Date: Tue, 18 Oct 2022 22:24:53 +0200 Subject: [PATCH] Changed explicit nullptr to more C++-like reset() --- src/lasp/device/lasp_streammgr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lasp/device/lasp_streammgr.cpp b/src/lasp/device/lasp_streammgr.cpp index 4209e97..e2714d4 100644 --- a/src/lasp/device/lasp_streammgr.cpp +++ b/src/lasp/device/lasp_streammgr.cpp @@ -301,7 +301,7 @@ void StreamMgr::stopStream(const StreamType t) { throw rte("Input stream is not running"); } /// Kills input stream - _inputStream = nullptr; + _inputStream.reset(); /// Send reset to all in data handlers for (auto &handler : _inDataHandlers) { handler->reset(nullptr); @@ -309,13 +309,13 @@ void StreamMgr::stopStream(const StreamType t) { } break; case (StreamType::output): { if (_inputStream && _inputStream->duplexMode()) { - _inputStream = nullptr; + _inputStream.reset(); } else { if (!_outputStream) { throw rte("Output stream is not running"); } - _outputStream = nullptr; + _outputStream.reset(); } // end else } break; default: