From afc8eb29c22447fe2bf71a503a5f2d25b4f8a7c7 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Fri, 23 May 2014 20:13:42 +0200 Subject: Changed iterate functor parameter to const reference * replaced ranged for loop with more appropriate std::for_each --- src/support/filesystem_context.h | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'src/support/filesystem_context.h') diff --git a/src/support/filesystem_context.h b/src/support/filesystem_context.h index 6322da6..1f574de 100644 --- a/src/support/filesystem_context.h +++ b/src/support/filesystem_context.h @@ -21,12 +21,20 @@ class FilesystemContext { boost::filesystem::path resolve(const std::string&) const; boost::filesystem::path resolve(const xalan::XalanDOMString&) const; - void iterate(const boost::filesystem::path&, - std::function) const; - void iterate(const std::string&, - std::function) const; - void iterate(const xalan::XalanDOMString&, - std::function) const; + void iterate( + const std::string&, + const std::function& + ) const; + + void iterate( + const xalan::XalanDOMString&, + const std::function& + ) const; + + void iterate( + const boost::filesystem::path&, + const std::function& + ) const; private: const boost::filesystem::path path_; -- cgit v1.2.3