-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qAsConst is deprecated, use std::as_const #41
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but this does mean we're requiring C++17. Is that intentional?
I couldn't find a KDToolBox-wide CXX_STANDARD requirement, so I don't know what's the current status. The bit I do need is UpdateableModel.h, for KDABViewer to build with recent Qt and without deprecation warnings. |
I guess it needs to add KDTOOLBOX_CXX17 to disable building and likely requiring it when enabled for it to pass CI |
Qt 6 requires C++17 anyway, but I see the point about Qt5. |
It can be on by default, CI compilers are all new enough, it's just that KDStlContainerAdaptor nor Qt5 requires C++-17. |
Hmm, actually instead of disabling entire subdirs for Qt5, I could just do "if qt6 use std::as_const else use qAsConst" |
73cefa8
to
7e7a98b
Compare
for more information, see https://pre-commit.ci
Done. I reverted the change to qt/qml/PropertySelector/PropertySelector.cpp because that code isn't built anywhere so I can't test changes there => someone else's problem. |
LGTM tho on the tests part I think you could've just made the vector const, no? |
hmm there are changes to it |
ping? who approves KDToolBox merge requests? |
No description provided.