aboutsummaryrefslogtreecommitdiff
path: root/src/function/read_file.cc
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-07-12 09:51:09 +0200
committerAdrian Kummerlaender2014-07-12 09:51:09 +0200
commit141725d681dd69f77e993c3d59d613d1ad7014f9 (patch)
tree018fc2ebea779dd4b9a01543f0512c3e24e0fce7 /src/function/read_file.cc
parent2192896e08572419edf99c81c3a524f07e877a10 (diff)
downloadInputXSLT-141725d681dd69f77e993c3d59d613d1ad7014f9.tar
InputXSLT-141725d681dd69f77e993c3d59d613d1ad7014f9.tar.gz
InputXSLT-141725d681dd69f77e993c3d59d613d1ad7014f9.tar.bz2
InputXSLT-141725d681dd69f77e993c3d59d613d1ad7014f9.tar.lz
InputXSLT-141725d681dd69f77e993c3d59d613d1ad7014f9.tar.xz
InputXSLT-141725d681dd69f77e993c3d59d613d1ad7014f9.tar.zst
InputXSLT-141725d681dd69f77e993c3d59d613d1ad7014f9.zip
Marked constructDocument member methods as const
* they don't modifiy the class state so there is no reason for them not being marked as const ** all calling methods are also const ** this enables us to remove the const_cast in FunctionBase * modified external function implementations accordingly * inlined handleError method in FunctionTransform as it is not needed in multiple places anymore
Diffstat (limited to 'src/function/read_file.cc')
-rw-r--r--src/function/read_file.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/function/read_file.cc b/src/function/read_file.cc
index 0ca5ee3..42cb4a4 100644
--- a/src/function/read_file.cc
+++ b/src/function/read_file.cc
@@ -60,7 +60,7 @@ boost::optional<std::string> readPlainFile(
namespace InputXSLT {
DomDocumentCache::document_ptr FunctionReadFile::constructDocument(
- boost::filesystem::path filePath) {
+ boost::filesystem::path filePath) const {
DomDocumentCache::document_ptr domDocument(
DomDocumentCache::createDocument("content")
);