aboutsummaryrefslogtreecommitdiff
path: root/src/demoserver.cpp
diff options
context:
space:
mode:
authorin1tiate <32779090+in1tiate@users.noreply.github.com>2025-01-14 02:31:36 -0600
committerGitHub <noreply@github.com>2025-01-14 02:31:36 -0600
commit764b2f8944ef4d40a3829c1e55112b0cb4ff32fe (patch)
tree76db40f16c2e290ca8df7aff27597b6509f28e4f /src/demoserver.cpp
parented8bc457351005b8590de5a70f8004edcf1635c1 (diff)
parenta9e2ea19508ceb120fbe8a570d35e651c15f819a (diff)
Merge pull request #1067 from AttorneyOnline/cleanup
Very cool and professional cleanup of clazy warnings
Diffstat (limited to 'src/demoserver.cpp')
-rw-r--r--src/demoserver.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/demoserver.cpp b/src/demoserver.cpp
index 93eaad56..dace861f 100644
--- a/src/demoserver.cpp
+++ b/src/demoserver.cpp
@@ -361,7 +361,7 @@ void DemoServer::load_demo(QString filename)
out.setCodec("UTF-8");
#endif
out << p_demo_data.dequeue();
- for (const QString &line : qAsConst(p_demo_data))
+ for (const QString &line : std::as_const(p_demo_data))
{
out << "\n" << line;
}
@@ -442,6 +442,7 @@ void DemoServer::playback()
}
// Take the first arg as the command
QString command = f_contents.takeFirst();
+ Q_UNUSED(command); // this seems load-bearing. TODO: this should not be load-bearing
int duration = 0;
if (!f_contents.isEmpty())
{