explicitly convert QStrings to QFileInfos#4293
Merged
uklotzde merged 1 commit intomixxxdj:mainfrom Sep 17, 2021
Merged
Conversation
required by Qt6
../src/controllers/dlgprefcontroller.cpp: In member function ‘virtual void DlgPrefController::slotApply()’:
../src/controllers/dlgprefcontroller.cpp:522:13: error: cannot convert ‘QString’ to ‘const QFileInfo&’
522 | mappingPath, QDir(resourceMappingsPath(m_pConfig)));
| ^~~~~~~~~~~
| |
| QString
In file included from ../src/controllers/hid/legacyhidcontrollermappingfilehandler.h:3,
from ../src/controllers/hid/legacyhidcontrollermapping.h:3,
from ../src/controllers/controllermappingtablemodel.h:10,
from ../src/controllers/controllerinputmappingtablemodel.h:8,
from ../src/controllers/dlgprefcontroller.h:7,
from ../src/controllers/dlgprefcontroller.cpp:1:
../src/controllers/legacycontrollermappingfilehandler.h:17:82: note: initializing argument 1 of ‘static std::shared_ptr<LegacyControllerMapping> LegacyControllerMappingFileHandler::loadMapping(const QFileInfo&, const QDir&)’
17 | static std::shared_ptr<LegacyControllerMapping> loadMapping(const QFileInfo& mappingFile,
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~
../src/controllers/dlgprefcontroller.cpp: In member function ‘void DlgPrefController::slotMappingSelected(int)’:
../src/controllers/dlgprefcontroller.cpp:584:21: error: cannot convert ‘QString’ to ‘const QFileInfo&’
584 | mappingPath, QDir(resourceMappingsPath(m_pConfig)));
| ^~~~~~~~~~~
| |
| QString
In file included from ../src/controllers/hid/legacyhidcontrollermappingfilehandler.h:3,
from ../src/controllers/hid/legacyhidcontrollermapping.h:3,
from ../src/controllers/controllermappingtablemodel.h:10,
from ../src/controllers/controllerinputmappingtablemodel.h:8,
from ../src/controllers/dlgprefcontroller.h:7,
from ../src/controllers/dlgprefcontroller.cpp:1:
../src/controllers/legacycontrollermappingfilehandler.h:17:82: note: initializing argument 1 of ‘static std::shared_ptr<LegacyControllerMapping> LegacyControllerMappingFileHandler::loadMapping(const QFileInfo&, const QDir&)’
17 | static std::shared_ptr<LegacyControllerMapping> loadMapping(const QFileInfo& mappingFile,
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~
Contributor
|
This is not documented as I already checked and mentioned. Strange decision. But we have to live with it. |
Member
|
The explanation can be found in this commit message: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
required by Qt6