diff options
author | Philipp Erhardt <Philipp.Erhardt@informatik.stud.uni-erlangen.de> | 2015-10-23 23:31:11 +0200 |
---|---|---|
committer | Philipp Erhardt <Philipp.Erhardt@informatik.stud.uni-erlangen.de> | 2015-10-28 17:39:11 +0100 |
commit | 39a25a245267b428f8cc41902c5c3a3c0ec2a14e (patch) | |
tree | 09cd9608fc31af6fe93691be30a2b1a5e48aa9d1 /src | |
parent | fb63cdf179f780530c7e18f6ca9e5432a3d88c5c (diff) |
Fix opening empty string
Diffstat (limited to 'src')
-rw-r--r-- | src/download.cpp | 2 | ||||
-rw-r--r-- | src/main.cpp | 2 |
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; } } |