BRepositoryBuilder: Add constructor for pre-init'ed repository

This commit is contained in:
Ingo Weinhold 2013-09-01 12:11:24 +02:00
parent a4b13eda69
commit c138f1f2af
2 changed files with 11 additions and 0 deletions

View File

@ -29,6 +29,8 @@ typedef std::map<BSolverPackage*, BString> BPackagePathMap;
class BRepositoryBuilder {
public:
BRepositoryBuilder(
BSolverRepository& repository);
BRepositoryBuilder(
BSolverRepository& repository,
const BString& name,

View File

@ -57,6 +57,15 @@ private:
} // unnamed namespace
BRepositoryBuilder::BRepositoryBuilder(BSolverRepository& repository)
:
fRepository(repository),
fErrorName(repository.Name()),
fPackagePaths(NULL)
{
}
BRepositoryBuilder::BRepositoryBuilder(BSolverRepository& repository,
const BString& name, const BString& errorName)
: