mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 03:22:27 +02:00
Remove all uses of QString::null
It's deprecated and produces a warning on Qt 5.14
This commit is contained in:
parent
9c96136312
commit
407b2a4f22
7 changed files with 8 additions and 8 deletions
|
@ -4,10 +4,10 @@
|
|||
#include <QNetworkAccessManager>
|
||||
|
||||
struct Build {
|
||||
QString tag{ QString::null };
|
||||
QString tag;
|
||||
int latestVersion{ 0 };
|
||||
int buildNumber{ 0 };
|
||||
QString installerZipURL{ QString::null };
|
||||
QString installerZipURL;
|
||||
};
|
||||
|
||||
struct Builds {
|
||||
|
|
|
@ -244,7 +244,7 @@ void LauncherState::getCurrentClientVersion() {
|
|||
if (match.hasMatch()) {
|
||||
_currentClientVersion = match.captured("version");
|
||||
} else {
|
||||
_currentClientVersion = QString::null;
|
||||
_currentClientVersion.clear();
|
||||
}
|
||||
qDebug() << "Current client version is: " << _currentClientVersion;
|
||||
|
||||
|
|
|
@ -176,7 +176,7 @@ private:
|
|||
QString _displayName;
|
||||
QString _applicationErrorMessage;
|
||||
QString _currentClientVersion;
|
||||
QString _buildTag { QString::null };
|
||||
QString _buildTag;
|
||||
QString _contentCacheURL;
|
||||
QString _loginTokenResponse;
|
||||
QFile _clientZipFile;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include "LoginRequest.h"
|
||||
|
||||
struct UserSettings {
|
||||
QString homeLocation{ QString::null };
|
||||
QString homeLocation;
|
||||
};
|
||||
|
||||
class UserSettingsRequest : public QObject {
|
||||
|
|
|
@ -58,7 +58,7 @@ public:
|
|||
static QString generateTemporaryDir();
|
||||
static bool deleteMyTemporaryDir(QString dirName);
|
||||
|
||||
static int removeTemporaryApplicationDirs(QString appName = QString::null);
|
||||
static int removeTemporaryApplicationDirs(QString appName = QString());
|
||||
|
||||
static Qt::CaseSensitivity getFSCaseSensitivity();
|
||||
static QString stripFilename(const QUrl& url);
|
||||
|
|
|
@ -34,7 +34,7 @@ public:
|
|||
BakerCLI(OvenCLIApplication* parent);
|
||||
|
||||
public slots:
|
||||
void bakeFile(QUrl inputUrl, const QString& outputPath, const QString& type = QString::null);
|
||||
void bakeFile(QUrl inputUrl, const QString& outputPath, const QString& type = QString());
|
||||
|
||||
private slots:
|
||||
void handleFinishedBaker();
|
||||
|
|
|
@ -85,7 +85,7 @@ void OvenCLIApplication::parseCommandLine(int argc, char* argv[]) {
|
|||
_inputUrlParameter = QDir::fromNativeSeparators(parser.value(CLI_INPUT_PARAMETER));
|
||||
_outputUrlParameter = QDir::fromNativeSeparators(parser.value(CLI_OUTPUT_PARAMETER));
|
||||
|
||||
_typeParameter = parser.isSet(CLI_TYPE_PARAMETER) ? parser.value(CLI_TYPE_PARAMETER) : QString::null;
|
||||
_typeParameter = parser.isSet(CLI_TYPE_PARAMETER) ? parser.value(CLI_TYPE_PARAMETER) : QString();
|
||||
|
||||
if (parser.isSet(CLI_DISABLE_TEXTURE_COMPRESSION_PARAMETER)) {
|
||||
qDebug() << "Disabling texture compression";
|
||||
|
|
Loading…
Reference in a new issue