diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-05-23 12:30:00 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-23 13:44:03 +0200 |
commit | d0322208bcbb35b9149b508ac2bffa667c38696f (patch) | |
tree | f324a25f9688163c9ae5d34d02aea1454e659010 /unoidl/source/unoidl-read.cxx | |
parent | 8928a4f6dcacb1357d3b9b1a7a29cc62fede87d9 (diff) |
Combine unoidl::loadProvider and unoidl::Manager::addProvider
Change-Id: I1240656cc2a4d713c838eb80fa90ce3485aad614
Diffstat (limited to 'unoidl/source/unoidl-read.cxx')
-rw-r--r-- | unoidl/source/unoidl-read.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/unoidl/source/unoidl-read.cxx b/unoidl/source/unoidl-read.cxx index 1a7633535579..1deb4d75f376 100644 --- a/unoidl/source/unoidl-read.cxx +++ b/unoidl/source/unoidl-read.cxx @@ -1112,13 +1112,12 @@ SAL_IMPLEMENT_MAIN() { for (sal_uInt32 i = (published ? 1 : 0); i != args; ++i) { OUString uri(getArgumentUri(i)); try { - prov = unoidl::loadProvider(mgr, uri); + prov = mgr->addProvider(uri); } catch (unoidl::NoSuchFileException &) { std::cerr << "Input <" << uri << "> does not exist" << std::endl; std::exit(EXIT_FAILURE); } - mgr->addProvider(prov); } std::map<OUString, Entity> ents; scanMap(mgr, prov->createRootCursor(), published, "", ents); |