summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/download.cpp2
-rw-r--r--src/main.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/download.cpp b/src/download.cpp
index 7a9b217..2bf6782 100644
--- a/src/download.cpp
+++ b/src/download.cpp
@@ -47,7 +47,7 @@ QString Download::load(QString f) {
if (reply->error() != QNetworkReply::NoError || !reply->isReadable()) {
cerr << reply->errorString().toStdString() << endl;
- return NULL;
+ return QString();
}
// store data in tempfile
diff --git a/src/main.cpp b/src/main.cpp
index e099b16..b0b5aee 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -99,7 +99,7 @@ int main(int argc, char *argv[]) {
} else {
file = QString::fromUtf8(argv[optind]);
}
- if (file == NULL) {
+ if (file.isNull()) {
return 1;
}
}