Use BStringList in package kit
Replace all instances of BObjectList<BString> by BStringList.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
#include <ObjectList.h>
|
||||
#include <String.h>
|
||||
#include <StringList.h>
|
||||
|
||||
#include <package/PackageArchitecture.h>
|
||||
#include <package/PackageFlags.h>
|
||||
@@ -68,10 +69,10 @@ public:
|
||||
|
||||
const BPackageVersion& Version() const;
|
||||
|
||||
const BObjectList<BString>& CopyrightList() const;
|
||||
const BObjectList<BString>& LicenseList() const;
|
||||
const BObjectList<BString>& URLList() const;
|
||||
const BObjectList<BString>& SourceURLList() const;
|
||||
const BStringList& CopyrightList() const;
|
||||
const BStringList& LicenseList() const;
|
||||
const BStringList& URLList() const;
|
||||
const BStringList& SourceURLList() const;
|
||||
|
||||
const BObjectList<BPackageResolvable>& ProvidesList() const;
|
||||
const BObjectList<BPackageResolvableExpression>&
|
||||
@@ -82,7 +83,7 @@ public:
|
||||
ConflictsList() const;
|
||||
const BObjectList<BPackageResolvableExpression>&
|
||||
FreshensList() const;
|
||||
const BObjectList<BString>& ReplacesList() const;
|
||||
const BStringList& ReplacesList() const;
|
||||
|
||||
void SetName(const BString& name);
|
||||
void SetSummary(const BString& summary);
|
||||
@@ -159,10 +160,10 @@ private:
|
||||
|
||||
BPackageVersion fVersion;
|
||||
|
||||
BObjectList<BString> fCopyrightList;
|
||||
BObjectList<BString> fLicenseList;
|
||||
BObjectList<BString> fURLList;
|
||||
BObjectList<BString> fSourceURLList;
|
||||
BStringList fCopyrightList;
|
||||
BStringList fLicenseList;
|
||||
BStringList fURLList;
|
||||
BStringList fSourceURLList;
|
||||
|
||||
BObjectList<BPackageResolvable> fProvidesList;
|
||||
|
||||
@@ -173,7 +174,7 @@ private:
|
||||
|
||||
BObjectList<BPackageResolvableExpression> fFreshensList;
|
||||
|
||||
BObjectList<BString> fReplacesList;
|
||||
BStringList fReplacesList;
|
||||
|
||||
BString fChecksum;
|
||||
BString fInstallPath;
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <Path.h>
|
||||
|
||||
|
||||
template <class T> class BObjectList;
|
||||
class BStringList;
|
||||
|
||||
|
||||
namespace BPackageKit {
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
status_t GetUserRepositoryConfigPath(BPath* path,
|
||||
bool create = false) const;
|
||||
|
||||
status_t GetRepositoryNames(BObjectList<BString>& names);
|
||||
status_t GetRepositoryNames(BStringList& names);
|
||||
|
||||
status_t VisitCommonRepositoryConfigs(
|
||||
BRepositoryConfigVisitor& visitor);
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include <Archivable.h>
|
||||
#include <Entry.h>
|
||||
#include <ObjectList.h>
|
||||
#include <StringList.h>
|
||||
#include <String.h>
|
||||
|
||||
#include <package/PackageArchitecture.h>
|
||||
@@ -38,8 +38,8 @@ public:
|
||||
const BString& Summary() const;
|
||||
uint8 Priority() const;
|
||||
BPackageArchitecture Architecture() const;
|
||||
const BObjectList<BString>& LicenseNames() const;
|
||||
const BObjectList<BString>& LicenseTexts() const;
|
||||
const BStringList& LicenseNames() const;
|
||||
const BStringList& LicenseTexts() const;
|
||||
|
||||
void SetName(const BString& name);
|
||||
void SetOriginalBaseURL(const BString& url);
|
||||
@@ -75,8 +75,8 @@ private:
|
||||
BString fSummary;
|
||||
uint8 fPriority;
|
||||
BPackageArchitecture fArchitecture;
|
||||
BObjectList<BString> fLicenseNames;
|
||||
BObjectList<BString> fLicenseTexts;
|
||||
BStringList fLicenseNames;
|
||||
BStringList fLicenseTexts;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user