Fix error: 'operator[]' is a private member of 'QMultiMap<QString, QVariant>' error spam#2362
Merged
Merged
Conversation
… private member of 'QMultiMap<QString, QVariant>'` error spam. Co-authored-by: Karol Suprynowicz <ksuprynowicz@post.pl>
error: 'operator[]' is a private member of 'QMultiMap<QString, QVariant>' error spam
ada-tv
approved these changes
Jul 5, 2026
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.
Fix
libraries/task/src/task/Config.h:73:48: error: 'operator[]' is a private member of 'QMultiMap<QString, QVariant>'error spam.This PR fixes one error that clang-tidy and clang-static-analyzer keep throwing for when running through CodeChecker. This single line change lowered the number of log messages during the CodeChecker run by almost 200000.
The change is cherry-picked out of the Qt6 branch: https://github.com/overte-org/overte/pull/1848/changes#diff-ebae517f462c16b046e1c1de4b5f909ad238f12b28e9b889d35ea6ebb3c01f81
While I don't really understand it, it was written by 7 (who presumably had more understanding of what they were doing), the compiler doesn't complain, it runs, and to really use all tools I have available, I also had CLion's LLM thingee check it.
I am hoping that @ada-tv or @daleglass have more understanding of that is happening here. My understanding is that this switches from using a private method in Qt to using something public, but that is mostly just repeating what Clang has been telling me.
Example Clang output: