Compilation fixes for Qt 6.0 Beta 3

This commit is contained in:
Cameron Gutman 2020-11-07 19:23:23 -06:00
parent de3afe27c1
commit 201b59cd4c
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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);