Revert "bootstrapping should elide duplicate .rdb paths in the configuration"
This reverts commit b162aec6254ab535cc5eb990b249f46aa8e79153, which increased code complexity for no benefit (the dubious scenario it was introduced for concerned duplicate service rdbs rather than type rdbs, anyway).
This commit is contained in:
parent
0951b76a00
commit
5fd78feebe
@ -2157,7 +2157,6 @@ css::uno::Reference< css::registry::XSimpleRegistry > createTypeRegistry(
|
|||||||
css::uno::Reference< css::registry::XRegistryKey >()),
|
css::uno::Reference< css::registry::XRegistryKey >()),
|
||||||
css::uno::UNO_QUERY_THROW);
|
css::uno::UNO_QUERY_THROW);
|
||||||
css::uno::Reference< css::registry::XSimpleRegistry > reg;
|
css::uno::Reference< css::registry::XSimpleRegistry > reg;
|
||||||
std::vector<rtl::OUString> loaded;
|
|
||||||
for (sal_Int32 i = 0; i != -1;) {
|
for (sal_Int32 i = 0; i != -1;) {
|
||||||
rtl::OUString uri(uris.getToken(0, ' ', i));
|
rtl::OUString uri(uris.getToken(0, ' ', i));
|
||||||
if (uri.isEmpty()) {
|
if (uri.isEmpty()) {
|
||||||
@ -2166,13 +2165,9 @@ css::uno::Reference< css::registry::XSimpleRegistry > createTypeRegistry(
|
|||||||
bool optional;
|
bool optional;
|
||||||
bool directory;
|
bool directory;
|
||||||
decodeRdbUri(&uri, &optional, &directory);
|
decodeRdbUri(&uri, &optional, &directory);
|
||||||
if (::std::find (loaded.begin(), loaded.end(), uri) == loaded.end())
|
reg = directory
|
||||||
{
|
? readTypeRdbDirectory(uri, optional, reg, simpleRegs, nestedRegs)
|
||||||
reg = directory
|
: readTypeRdbFile(uri, optional, reg, simpleRegs, nestedRegs);
|
||||||
? readTypeRdbDirectory(uri, optional, reg, simpleRegs, nestedRegs)
|
|
||||||
: readTypeRdbFile(uri, optional, reg, simpleRegs, nestedRegs);
|
|
||||||
loaded.push_back(uri);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return reg;
|
return reg;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user