From 201b59cd4c3dfa567cf77cc7aad8193ff02a170c Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 7 Nov 2020 19:23:23 -0600 Subject: [PATCH] Compilation fixes for Qt 6.0 Beta 3 --- app/path.cpp | 2 +- app/streaming/input/input.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/path.cpp b/app/path.cpp index 69d9a4b1..bd5c114f 100644 --- a/app/path.cpp +++ b/app/path.cpp @@ -40,7 +40,7 @@ QString Path::getDataFilePath(QString fileName) } // Now check the data directories (for Linux, in particular) - candidatePath = QStandardPaths::locate(QStandardPaths::DataLocation, fileName); + candidatePath = QStandardPaths::locate(QStandardPaths::AppDataLocation, fileName); if (!candidatePath.isEmpty() && QFile::exists(candidatePath)) { qInfo() << "Found" << fileName << "at" << candidatePath; return candidatePath; diff --git a/app/streaming/input/input.cpp b/app/streaming/input/input.cpp index c49a24ba..bfef61d1 100644 --- a/app/streaming/input/input.cpp +++ b/app/streaming/input/input.cpp @@ -211,7 +211,7 @@ void SdlInputHandler::raiseAllKeys() SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "Raising %d keys", - m_KeysDown.count()); + (int)m_KeysDown.count()); for (auto keyDown : m_KeysDown) { LiSendKeyboardEvent(keyDown, KEY_ACTION_UP, 0);