Skip to content

Commit

Permalink
Code formatting
Browse files Browse the repository at this point in the history
Add curly braces on online conditions on existing code that was moved.
  • Loading branch information
Kissaki committed Apr 20, 2017
1 parent 297ab17 commit 11c2964
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/mumble/Overlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ QString OverlayAppInfo::applicationIdentifierForPath(const QString &path) {
}
}

if (data)
if (data) {
CFRelease(data);
if (plist)
}
if (plist) {
CFRelease(plist);
}

return qsIdentifier;
#else
Expand Down Expand Up @@ -85,21 +87,26 @@ OverlayAppInfo OverlayAppInfo::applicationInfoForId(const QString &identifier) {
CFStringGetCString(iconFileName, buf, 4096, kCFStringEncodingUTF8);
QString qsIconPath = QString::fromLatin1("%1/Contents/Resources/%2")
.arg(qsBundlePath, QString::fromUtf8(buf));
if (! QFile::exists(qsIconPath))
if (! QFile::exists(qsIconPath)) {
qsIconPath += QString::fromLatin1(".icns");
if (QFile::exists(qsIconPath))
}
if (QFile::exists(qsIconPath)) {
qiAppIcon = QIcon(qsIconPath);
}
}
}
}
}

if (bundleId)
if (bundleId) {
CFRelease(bundleId);
if (bundleUrl)
}
if (bundleUrl) {
CFRelease(bundleUrl);
if (bundle)
}
if (bundle) {
CFRelease(bundle);
}

#elif defined(Q_OS_WIN)
// qWinAppInst(), whose return value we used to pass
Expand Down

0 comments on commit 11c2964

Please sign in to comment.