From 141725d681dd69f77e993c3d59d613d1ad7014f9 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 12 Jul 2014 09:51:09 +0200 Subject: 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 --- src/function/external_text_formatter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/function/external_text_formatter.h') diff --git a/src/function/external_text_formatter.h b/src/function/external_text_formatter.h index 23e6ab9..27f2fc7 100644 --- a/src/function/external_text_formatter.h +++ b/src/function/external_text_formatter.h @@ -21,7 +21,7 @@ class FunctionExternalTextFormatter : public FunctionBase< DomDocumentCache::document_ptr constructDocument( boost::filesystem::path, std::string - ); + ) const; }; -- cgit v1.2.3