diff options
Diffstat (limited to 'daemon/appinfo.cpp')
| -rw-r--r-- | daemon/appinfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/appinfo.cpp b/daemon/appinfo.cpp index 939b569..f4a32c3 100644 --- a/daemon/appinfo.cpp +++ b/daemon/appinfo.cpp @@ -179,7 +179,7 @@ QString AppInfo::getJSApp() const { if (!isValid() || !isLocal()) return QString(); - QIODevice *appJS = openFile(AppInfo::APPJS); + QScopedPointer<QIODevice> appJS(openFile(AppInfo::APPJS)); if (!appJS) { qCWarning(l) << "cannot find app" << d->path << "app.js"; return QString(); @@ -205,7 +205,7 @@ AppInfo AppInfo::fromPath(const QString &path) info.d->path = path; - QIODevice *appInfoJSON = info.openFile(AppInfo::INFO); + QScopedPointer<QIODevice> appInfoJSON(info.openFile(AppInfo::INFO)); if (!appInfoJSON) { qCWarning(l) << "cannot find app" << path << "info json"; return AppInfo(); |
