Skip to content

Commit

Permalink
Use modern variable name for QDebugStateSaver
Browse files Browse the repository at this point in the history
  • Loading branch information
hasselmm committed Sep 7, 2024
1 parent 95f0b7b commit 32098a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions mdns/mdnsmessage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ QDebug operator<<(QDebug debug, const qnc::mdns::Label &label)

QDebug operator<<(QDebug debug, const qnc::mdns::Message &message)
{
const auto saver = QDebugStateSaver{debug};
const auto _ = QDebugStateSaver{debug};

if (debug.verbosity() >= QDebug::DefaultVerbosity)
debug.nospace() << message.staticMetaObject.className();
Expand Down Expand Up @@ -428,7 +428,7 @@ QDebug operator<<(QDebug debug, const qnc::mdns::Name &name)

QDebug operator<<(QDebug debug, const qnc::mdns::Question &question)
{
const auto saver = QDebugStateSaver{debug};
const auto _ = QDebugStateSaver{debug};

if (debug.verbosity() >= QDebug::DefaultVerbosity)
debug.nospace() << question.staticMetaObject.className();
Expand All @@ -448,7 +448,7 @@ QDebug operator<<(QDebug debug, const qnc::mdns::Question &question)

QDebug operator<<(QDebug debug, const qnc::mdns::Resource &resource)
{
const auto saver = QDebugStateSaver{debug};
const auto _ = QDebugStateSaver{debug};

if (debug.verbosity() >= QDebug::DefaultVerbosity)
debug.nospace() << resource.staticMetaObject.className();
Expand Down Expand Up @@ -497,7 +497,7 @@ QDebug operator<<(QDebug debug, const qnc::mdns::Resource &resource)

QDebug operator<<(QDebug debug, const qnc::mdns::ServiceRecord &service)
{
const auto saver = QDebugStateSaver{debug};
const auto _ = QDebugStateSaver{debug};

if (debug.verbosity() >= QDebug::DefaultVerbosity)
debug.nospace() << service.staticMetaObject.className();
Expand Down
2 changes: 1 addition & 1 deletion mdns/mdnsresolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ void Resolver::onTimeout()

QDebug operator<<(QDebug debug, const qnc::mdns::ServiceDescription &service)
{
const auto saver = QDebugStateSaver{debug};
const auto _ = QDebugStateSaver{debug};

if (debug.verbosity() >= QDebug::DefaultVerbosity)
debug.nospace() << service.staticMetaObject.className();
Expand Down

0 comments on commit 32098a9

Please sign in to comment.