Use xmlreader::XmlReader::getUrl
Change-Id: Idd59fd1324615e575ed812e0c2a7cdfd84a9aeb2
This commit is contained in:
parent
530334a27e
commit
c57fb9ea45
@ -35,7 +35,7 @@ namespace configmgr {
|
||||
|
||||
ParseManager::ParseManager(
|
||||
OUString const & url, rtl::Reference< Parser > const & parser)
|
||||
: url_(url), reader_(url), parser_(parser), itemNamespaceId_(-1)
|
||||
: reader_(url), parser_(parser), itemNamespaceId_(-1)
|
||||
{
|
||||
assert(parser.is());
|
||||
int id;
|
||||
@ -67,7 +67,7 @@ bool ParseManager::parse(std::set< OUString > const * existingDependencies) {
|
||||
if (!parser_->startElement(
|
||||
reader_, itemNamespaceId_, itemData_, existingDependencies))
|
||||
{
|
||||
SAL_INFO("configmgr", "parsing " << url_ << " took " << (osl_getGlobalTimer() - startTime) << " ms, fail");
|
||||
SAL_INFO("configmgr", "parsing " << reader_.getUrl() << " took " << (osl_getGlobalTimer() - startTime) << " ms, fail");
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
@ -78,7 +78,7 @@ bool ParseManager::parse(std::set< OUString > const * existingDependencies) {
|
||||
parser_->characters(itemData_);
|
||||
break;
|
||||
case xmlreader::XmlReader::RESULT_DONE:
|
||||
SAL_INFO("configmgr", "parsing " << url_ << " took " << (osl_getGlobalTimer() - startTime) << " ms, success");
|
||||
SAL_INFO("configmgr", "parsing " << reader_.getUrl() << " took " << (osl_getGlobalTimer() - startTime) << " ms, success");
|
||||
return true;
|
||||
}
|
||||
itemData_.clear();
|
||||
|
@ -47,7 +47,6 @@ public:
|
||||
enum { NAMESPACE_OOR = 1, NAMESPACE_XS = 2, NAMESPACE_XSI = 3 };
|
||||
|
||||
private:
|
||||
OUString url_;
|
||||
virtual ~ParseManager();
|
||||
|
||||
xmlreader::XmlReader reader_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user