Notes |
|
|
I got bitten by issue 0003310 after sharing the first patch file, so two patch files are attached. |
|
|
|
(re-attached 0002-Update-qt-json-in-wadseeker-too.patch, because I initially forgot to update Wadseeker's references to the class and that failed to build from source.) |
|
|
(0021353)
|
WubTheCaptain
|
2020-06-05 07:49
(edited on: 2020-06-05 07:50) |
|
Quote
src/core/json.cpp | 272 ++++++++++++++++---------
src/core/json.h | 272 ++++++++-----------------
Quote
src/wadseeker/protocols/json.cpp | 274 +++++++++++-------
src/wadseeker/protocols/json.h | 272 ++++++-----------
I hadn't noticed this before, but huh. Despite the line differences in json.cpp, but show to be the same json.cpp file in the master branch and my patch branch.
|
|
|
(0021354)
|
WubTheCaptain
|
2020-06-05 07:51
(edited on: 2020-06-05 07:52) |
|
0003794:0021353:
Quote from WubTheCaptain Despite the line differences in json.cpp, but show to be the same json.cpp file in the master branch and my patch branch.
Nevermind, git diff doesn't catch it but diff -u does.
$ diff -u src/core/json.cpp src/wadseeker/protocols/json.cpp # master branch
--- src/core/json.cpp 2020-06-05 07:48:38.577780264 +0000
+++ src/wadseeker/protocols/json.cpp 2020-06-05 07:48:38.577780264 +0000
@@ -468,11 +468,11 @@
index = lastIndex + 1;
if (numberStr.contains('.')) {
- return QVariant(numberStr.toDouble(NULL));
+ return QVariant(numberStr.toDouble(nullptr));
} else if (numberStr.startsWith('-')) {
- return QVariant(numberStr.toLongLong(NULL));
+ return QVariant(numberStr.toLongLong(nullptr));
} else {
- return QVariant(numberStr.toULongLong(NULL));
+ return QVariant(numberStr.toULongLong(nullptr));
}
}
|
|
|
(0021408)
|
Blzut3
|
2020-06-08 01:50
|
|
Given that Qt JSON was added years before we added support for Qt5 much less dropped Qt4 support, should we instead have a ticket for switching to Qt 5's own JSON classes? |
|
|
|
Quote from Blzut3 Given that Qt JSON was added years before we added support for Qt5 much less dropped Qt4 support, should we instead have a ticket for switching to Qt 5's own JSON classes?
Unaware those existed, yes. 0003821 (excuse the summary).
'https://doc.qt.io/qt-5/json.html [^]' |
|