Do not use C data type
Summary: unsigned long long is a "C" data type Reviewers: stikonas, cjlcarvalho Reviewed By: cjlcarvalho Subscribers: #kde_partition_manager Tags: #kde_partition_manager Differential Revision: https://phabricator.kde.org/D20076
This commit is contained in:
parent
e8d6f7bab6
commit
c78b35eb41
|
@ -450,7 +450,7 @@ quint64 ExternalCommand::getNonce(QDBusInterface& iface)
|
||||||
QDBusPendingCall pcall = iface.asyncCall(QStringLiteral("getNonce"));
|
QDBusPendingCall pcall = iface.asyncCall(QStringLiteral("getNonce"));
|
||||||
QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(pcall);
|
QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(pcall);
|
||||||
QEventLoop loop;
|
QEventLoop loop;
|
||||||
unsigned long long rval = 0;
|
quint64 rval = 0;
|
||||||
|
|
||||||
auto exitLoop = [&] (QDBusPendingCallWatcher *watcher) {
|
auto exitLoop = [&] (QDBusPendingCallWatcher *watcher) {
|
||||||
loop.exit();
|
loop.exit();
|
||||||
|
@ -458,7 +458,7 @@ quint64 ExternalCommand::getNonce(QDBusInterface& iface)
|
||||||
if (watcher->isError())
|
if (watcher->isError())
|
||||||
qWarning() << watcher->error();
|
qWarning() << watcher->error();
|
||||||
else {
|
else {
|
||||||
QDBusPendingReply<unsigned long long> reply = *watcher;
|
QDBusPendingReply<quint64> reply = *watcher;
|
||||||
rval = reply;
|
rval = reply;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue