diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-23 14:54:44 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-25 11:59:08 +0000 |
commit | 472219209849daee7a9924f0f54d5f0bdfe4b772 (patch) | |
tree | 426719450423d135acb9edfadf6fb7ca302bcfca /configmgr | |
parent | 96fb3c52f5d04c8257cefd97630173005e6e466c (diff) |
Convert XmlReader::Result to scoped enum
Change-Id: I6a0d1dcf5ae51d2ac08aacdfec50865f93e51c21
Reviewed-on: https://gerrit.libreoffice.org/25365
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/source/parsemanager.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/configmgr/source/parsemanager.cxx b/configmgr/source/parsemanager.cxx index 48ec7379e169..192b34aecf1e 100644 --- a/configmgr/source/parsemanager.cxx +++ b/configmgr/source/parsemanager.cxx @@ -60,11 +60,11 @@ bool ParseManager::parse(std::set< OUString > const * existingDependencies) { sal_uInt32 startTime( osl_getGlobalTimer() ); for (;;) { switch (itemData_.is() - ? xmlreader::XmlReader::RESULT_BEGIN + ? xmlreader::XmlReader::Result::Begin : reader_.nextItem( parser_->getTextMode(), &itemData_, &itemNamespaceId_)) { - case xmlreader::XmlReader::RESULT_BEGIN: + case xmlreader::XmlReader::Result::Begin: if (!parser_->startElement( reader_, itemNamespaceId_, itemData_, existingDependencies)) { @@ -72,13 +72,13 @@ bool ParseManager::parse(std::set< OUString > const * existingDependencies) { return false; } break; - case xmlreader::XmlReader::RESULT_END: + case xmlreader::XmlReader::Result::End: parser_->endElement(reader_); break; - case xmlreader::XmlReader::RESULT_TEXT: + case xmlreader::XmlReader::Result::Text: parser_->characters(itemData_); break; - case xmlreader::XmlReader::RESULT_DONE: + case xmlreader::XmlReader::Result::Done: SAL_INFO("configmgr", "parsing " << reader_.getUrl() << " took " << (osl_getGlobalTimer() - startTime) << " ms, success"); return true; } |