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