[rkward] rkward: Silence another warning
Thomas Friedrichsmeier
null at kde.org
Sun Apr 22 20:07:31 UTC 2018
Git commit 25c4471b174fd600c2a1f048f4f8af24fd5454eb by Thomas Friedrichsmeier.
Committed on 22/04/2018 at 20:07.
Pushed by tfry into branch 'master'.
Silence another warning
M +1 -1 rkward/agents/rkprintagent.cpp
M +2 -2 rkward/dialogs/rkloadlibsdialog.cpp
https://commits.kde.org/rkward/25c4471b174fd600c2a1f048f4f8af24fd5454eb
diff --git a/rkward/agents/rkprintagent.cpp b/rkward/agents/rkprintagent.cpp
index 6227a82b..932361bd 100644
--- a/rkward/agents/rkprintagent.cpp
+++ b/rkward/agents/rkprintagent.cpp
@@ -2,7 +2,7 @@
rkprintagent - description
-------------------
begin : Mon Aug 01 2011
- copyright : (C) 2011 by Thomas Friedrichsmeier
+ copyright : (C) 2011-2018 by Thomas Friedrichsmeier
email : thomas.friedrichsmeier at kdemail.net
***************************************************************************/
diff --git a/rkward/dialogs/rkloadlibsdialog.cpp b/rkward/dialogs/rkloadlibsdialog.cpp
index 91c26c20..4e5f7052 100644
--- a/rkward/dialogs/rkloadlibsdialog.cpp
+++ b/rkward/dialogs/rkloadlibsdialog.cpp
@@ -1134,12 +1134,12 @@ Qt::ItemFlags RKRPackageInstallationStatus::flags (const QModelIndex &index) con
}
QModelIndex RKRPackageInstallationStatus::index (int row, int column, const QModelIndex &parent) const {
- if (!parent.isValid ()) return createIndex (row, column, -1); // toplevel items
+ if (!parent.isValid ()) return createIndex (row, column, (quintptr) std::numeric_limits<quintptr>::max); // toplevel items
return createIndex (row, column, parent.row ()); // parent.row () identifies, which toplevel item is the parent.
}
QModelIndex RKRPackageInstallationStatus::parent (const QModelIndex& index) const {
- if (index.internalId () == -1) return QModelIndex ();
+ if (index.internalId () == (quintptr) std::numeric_limits<quintptr>::max) return QModelIndex ();
return (RKRPackageInstallationStatus::index (index.internalId (), 0, QModelIndex ()));
}
More information about the rkward-tracker
mailing list