BRepositoryBuilder: Add constructor for pre-init'ed repository
This commit is contained in:
parent
a4b13eda69
commit
c138f1f2af
@ -29,6 +29,8 @@ typedef std::map<BSolverPackage*, BString> BPackagePathMap;
|
||||
|
||||
class BRepositoryBuilder {
|
||||
public:
|
||||
BRepositoryBuilder(
|
||||
BSolverRepository& repository);
|
||||
BRepositoryBuilder(
|
||||
BSolverRepository& repository,
|
||||
const BString& name,
|
||||
|
@ -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)
|
||||
:
|
||||
|
Loading…
Reference in New Issue
Block a user