From 68780d1d203427c6737d16336bd4256fa803e245 Mon Sep 17 00:00:00 2001 From: Fanda Vacek Date: Thu, 12 Dec 2024 10:08:48 +0100 Subject: [PATCH] Add auto where type is not explicitly needed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Václav Kubernát --- libshvchainpack/src/abstractstreamreader.cpp | 2 +- libshviotqt/tests/test_frame_reader.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libshvchainpack/src/abstractstreamreader.cpp b/libshvchainpack/src/abstractstreamreader.cpp index ce675fb3..55e9417b 100644 --- a/libshvchainpack/src/abstractstreamreader.cpp +++ b/libshvchainpack/src/abstractstreamreader.cpp @@ -72,7 +72,7 @@ RpcValue AbstractStreamReader::read(std::string *error) ssize_t AbstractStreamReader::readCount() const { - ssize_t count = m_in.tellg(); + auto count = m_in.tellg(); if (count >= 0) { count -= m_inCtx.end - m_inCtx.current; } diff --git a/libshviotqt/tests/test_frame_reader.cpp b/libshviotqt/tests/test_frame_reader.cpp index 278dc99a..2a9b24d8 100644 --- a/libshviotqt/tests/test_frame_reader.cpp +++ b/libshviotqt/tests/test_frame_reader.cpp @@ -1,4 +1,4 @@ -#include "shv/chainpack/utils.h" +#include #include #include #include