Skip to content
Snippets Groups Projects
Commit 39a25a24 authored by Philipp Erhardt's avatar Philipp Erhardt
Browse files

Fix opening empty string

parent fb63cdf1
Branches master
No related tags found
No related merge requests found
......@@ -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
......
......@@ -99,7 +99,7 @@ int main(int argc, char *argv[]) {
} else {
file = QString::fromUtf8(argv[optind]);
}
if (file == NULL) {
if (file.isNull()) {
return 1;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment