aboutsummaryrefslogtreecommitdiff
path: root/src/support/filesystem_context.h
diff options
context:
space:
mode:
authorAdrian Kummerländer2014-05-23 20:13:42 +0200
committerAdrian Kummerländer2014-05-23 20:13:42 +0200
commitafc8eb29c22447fe2bf71a503a5f2d25b4f8a7c7 (patch)
tree4401a74e8cbe01375871bf7c42bb6ca598e2818e /src/support/filesystem_context.h
parent6ede83ca2c50353bb9f97260f0ef04234041e73b (diff)
downloadInputXSLT-afc8eb29c22447fe2bf71a503a5f2d25b4f8a7c7.tar
InputXSLT-afc8eb29c22447fe2bf71a503a5f2d25b4f8a7c7.tar.gz
InputXSLT-afc8eb29c22447fe2bf71a503a5f2d25b4f8a7c7.tar.bz2
InputXSLT-afc8eb29c22447fe2bf71a503a5f2d25b4f8a7c7.tar.lz
InputXSLT-afc8eb29c22447fe2bf71a503a5f2d25b4f8a7c7.tar.xz
InputXSLT-afc8eb29c22447fe2bf71a503a5f2d25b4f8a7c7.tar.zst
InputXSLT-afc8eb29c22447fe2bf71a503a5f2d25b4f8a7c7.zip
Changed iterate functor parameter to const reference
* replaced ranged for loop with more appropriate std::for_each
Diffstat (limited to 'src/support/filesystem_context.h')
-rw-r--r--src/support/filesystem_context.h20
1 files changed, 14 insertions, 6 deletions
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<void(const boost::filesystem::path&)>) const;
- void iterate(const std::string&,
- std::function<void(const boost::filesystem::path&)>) const;
- void iterate(const xalan::XalanDOMString&,
- std::function<void(const boost::filesystem::path&)>) const;
+ void iterate(
+ const std::string&,
+ const std::function<void(const boost::filesystem::path&)>&
+ ) const;
+
+ void iterate(
+ const xalan::XalanDOMString&,
+ const std::function<void(const boost::filesystem::path&)>&
+ ) const;
+
+ void iterate(
+ const boost::filesystem::path&,
+ const std::function<void(const boost::filesystem::path&)>&
+ ) const;
private:
const boost::filesystem::path path_;