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/base.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/function/base.h') diff --git a/src/function/base.h b/src/function/base.h index 7c2043e..c3e1fb6 100644 --- a/src/function/base.h +++ b/src/function/base.h @@ -104,9 +104,7 @@ class FunctionBase : public xalan::Function { ); return this->document_cache_->create( - static_cast( - const_cast(this) - )->constructDocument( + static_cast(this)->constructDocument( valueGetter.get -- cgit v1.2.3