-
Notifications
You must be signed in to change notification settings - Fork 15
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
Modernize the codebase (C++11) #10
Comments
Are you aware of clang-tidy? Fixing at least the override and nullptr warnings should be fairly straightforward using it (https://www.kdab.com/clang-tidy-part-1-modernize-source-code-using-c11c14/). |
Yeah, I had it in mind and I ran it on some projects, but I had excuses to not run it on TelepathyQt yet. |
I also would like to apply your jbruechert@3bbe126, :-) but we can't rely on Qt > 5.6 yet. |
Opened #36 with the changes. |
Most of the work is done. Still TODO:
Get rid of stuff like this: QVariantMap map;
map.insert(QLatin1String(".AvailableMechanisms"),
QVariant::fromValue(mPriv->adaptee->availableMechanisms()));
map.insert(QLatin1String(".HasInitialData"),
QVariant::fromValue(mPriv->adaptee->hasInitialData()));
map.insert(QLatin1String(".CanTryAgain"),
QVariant::fromValue(mPriv->adaptee->canTryAgain()));
map.insert(QLatin1String(".AuthorizationIdentity"),
QVariant::fromValue(mPriv->adaptee->authorizationIdentity()));
map.insert(QLatin1String(".DefaultUsername"),
QVariant::fromValue(mPriv->adaptee->defaultUsername()));
map.insert(QLatin1String(".DefaultRealm"),
QVariant::fromValue(mPriv->adaptee->defaultRealm()));
map.insert(QLatin1String(".MaySaveResponse"),
QVariant::fromValue(mPriv->adaptee->maySaveResponse()));
return map; |
For the old-style connects we could look into automating most of the work using clazy. The harder part will be the spec code generator. |
No description provided.
The text was updated successfully, but these errors were encountered: