hrev50610 adds 1 changeset to branch 'master'
old head: f4f6b874bf2a573631524f62c2130c505e824052
new head: be29847471cfb6323a2a0b65cce609ab218c8ab6
overview:
http://cgit.haiku-os.org/haiku/log/?qt=range&q=be29847471cf+%5Ef4f6b874bf2a
----------------------------------------------------------------------------
be29847471cf: HaikuDepot: code clean-up from #12793
[ Andrew Lindesay <apl@xxxxxxxxxxxxxx> ]
----------------------------------------------------------------------------
Revision: hrev50610
Commit: be29847471cfb6323a2a0b65cce609ab218c8ab6
URL: http://cgit.haiku-os.org/haiku/commit/?id=be29847471cf
Author: Andrew Lindesay <apl@xxxxxxxxxxxxxx>
Date: Fri Oct 21 08:52:13 2016 UTC
Ticket: https://dev.haiku-os.org/ticket/12793
----------------------------------------------------------------------------
1 file changed, 7 insertions(+), 6 deletions(-)
src/apps/haikudepot/model/Model.cpp | 13 +++++++------
----------------------------------------------------------------------------
diff --git a/src/apps/haikudepot/model/Model.cpp
b/src/apps/haikudepot/model/Model.cpp
index 342d5ef..94757a2 100644
--- a/src/apps/haikudepot/model/Model.cpp
+++ b/src/apps/haikudepot/model/Model.cpp
@@ -172,7 +172,7 @@ public:
virtual bool AcceptsPackage(const PackageInfoRef& package) const
{
- if (package.Get()==NULL)
+ if (package.Get() == NULL)
return false;
printf("TEST %s\n", package->Name().String());
@@ -846,14 +846,14 @@ Model::PopulateWebAppRepositoryCode(DepotInfo& depotInfo)
repositorySourceBaseURLs.Add(depotInfo.BaseURL());
- // TODO; better API call handling around errors.
+ // TODO; better API call handling around errors.
if (fWebAppInterface.RetrieveRepositoriesForSourceBaseURLs(
repositorySourceBaseURLs, repositoriesEnvelope) == B_OK
&& repositoriesEnvelope.FindMessage("result", &result)
== B_OK
&& result.FindDouble("total", &total) == B_OK) {
- if ((int64) total > 0) {
+ if ((int64)total > 0) {
BMessage repositories;
BMessage repository;
BString repositoryCode;
@@ -869,7 +869,8 @@ Model::PopulateWebAppRepositoryCode(DepotInfo& depotInfo)
depotInfo.WebAppRepositoryCode().String(),
depotInfo.Name().String());
} else {
- printf("unable to find the 'code' in
the api response for local depot '%s'\n",
+ printf("unable to find the 'code' in
the api response for "
+ "local depot '%s'\n",
depotInfo.Name().String());
}
} else {
@@ -881,7 +882,8 @@ Model::PopulateWebAppRepositoryCode(DepotInfo& depotInfo)
depotInfo.BaseURL().String());
}
} else {
- printf("missing base url for depot info %s --> will not obtain
web app repository code\n",
+ printf("missing base url for depot info %s --> will not obtain
web app "
+ "repository code\n",
depotInfo.Name().String());
}
}
@@ -1075,7 +1077,6 @@ Model::_PopulatePackageInfos(PackageList& packages, bool
fromCacheOnly,
if (status == B_OK) {
// Parse message
- // info.PrintToStream();
BMessage result;
BMessage pkgs;
if (info.FindMessage("result", &result) == B_OK