From bf86f09912b25c4494f2e1b40462590910d118b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sun, 13 Jan 2008 22:03:34 +0000 Subject: [PATCH] style cleanup git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23501 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../packageinstaller/InstalledPackageInfo.cpp | 2 +- src/apps/packageinstaller/PackageView.cpp | 30 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/apps/packageinstaller/InstalledPackageInfo.cpp b/src/apps/packageinstaller/InstalledPackageInfo.cpp index 345c2afb2a..b5e6f1c20d 100644 --- a/src/apps/packageinstaller/InstalledPackageInfo.cpp +++ b/src/apps/packageinstaller/InstalledPackageInfo.cpp @@ -37,7 +37,7 @@ info_prepare(const char *filename, BFile *file, BMessage *info) return B_ERROR; status_t ret = info->Unflatten(file); - if (ret != B_OK || info->what != P_PACKAGE_INFO) + if (ret != B_OK || info->what != P_PACKAGE_INFO) return B_ERROR; return B_OK; diff --git a/src/apps/packageinstaller/PackageView.cpp b/src/apps/packageinstaller/PackageView.cpp index c7660e9673..964af77e3d 100644 --- a/src/apps/packageinstaller/PackageView.cpp +++ b/src/apps/packageinstaller/PackageView.cpp @@ -114,13 +114,13 @@ PackageView::AttachedToWindow() fOpenPanel->SetTarget(BMessenger(this)); fInstallTypes->SetTargetForItems(this); - if (fInfo.InitCheck() == B_OK) { - // If the package is valid, we can set up the default group and all - // other things. If not, then the application will close just after - // attaching the view to the window - _GroupChanged(0); + if (fInfo.InitCheck() == B_OK) { + // If the package is valid, we can set up the default group and all + // other things. If not, then the application will close just after + // attaching the view to the window + _GroupChanged(0); - fStatusWindow = new PackageStatus(T("Installation progress")); + fStatusWindow = new PackageStatus(T("Installation progress")); // Show the splash screen, if present BMallocIO *image = fInfo.GetSplashScreen(); @@ -130,18 +130,18 @@ PackageView::AttachedToWindow() } // Show the disclaimer/info text popup, if present - BString disclaimer = fInfo.GetDisclaimer(); - if (disclaimer.Length() != 0) { - PackageTextViewer *text = new PackageTextViewer(disclaimer.String()); - int32 selection = text->Go(); - // The user didn't accept our disclaimer, this means we cannot continue. - if (selection == 0) { + BString disclaimer = fInfo.GetDisclaimer(); + if (disclaimer.Length() != 0) { + PackageTextViewer *text = new PackageTextViewer(disclaimer.String()); + int32 selection = text->Go(); + // The user didn't accept our disclaimer, this means we cannot continue. + if (selection == 0) { BWindow *parent = Window(); if (parent && parent->Lock()) parent->Quit(); - } - } - } + } + } + } }