diff options
Diffstat (limited to 'src/support/include_entity_resolver.cc')
-rw-r--r-- | src/support/include_entity_resolver.cc | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/support/include_entity_resolver.cc b/src/support/include_entity_resolver.cc index 68af11a..948a61b 100644 --- a/src/support/include_entity_resolver.cc +++ b/src/support/include_entity_resolver.cc @@ -35,18 +35,7 @@ namespace InputXSLT { IncludeEntityResolver::IncludeEntityResolver( const std::vector<std::string>& path): - path_() { - this->path_.reserve(path.size()); - - std::transform( - path.begin(), - path.end(), - std::back_inserter(this->path_), - [](const std::string& path) -> FilesystemContext { - return FilesystemContext(path); - } - ); -} + path_(path.begin(), path.end()) { } xercesc::InputSource* IncludeEntityResolver::resolveEntity( const XMLCh* const, @@ -70,7 +59,7 @@ xercesc::InputSource* IncludeEntityResolver::resolveEntity( } boost::optional<boost::filesystem::path> IncludeEntityResolver::resolve( - const std::string& filePath) { + const std::string& filePath) const { for ( auto&& context : this->path_ ) { const boost::filesystem::path resolvedPath( context.resolve(filePath) |