diff options
Diffstat (limited to 'basebmp/inc/basebmp/colorblendaccessoradapter.hxx')
-rw-r--r-- | basebmp/inc/basebmp/colorblendaccessoradapter.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/basebmp/inc/basebmp/colorblendaccessoradapter.hxx b/basebmp/inc/basebmp/colorblendaccessoradapter.hxx index 4bb913500bd9..b1a0e33a7349 100644 --- a/basebmp/inc/basebmp/colorblendaccessoradapter.hxx +++ b/basebmp/inc/basebmp/colorblendaccessoradapter.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -44,7 +44,7 @@ namespace basebmp when blitting through a mask) - there really isn't no other sensible default behaviour for these methods. */ -template< class WrappedAccessor, +template< class WrappedAccessor, typename AlphaType, bool polarity > class ConstantColorBlendSetterAccessorAdapter { @@ -54,7 +54,7 @@ public: typedef typename WrappedAccessor::value_type color_type; private: - typename ColorTraits< color_type >:: + typename ColorTraits< color_type >:: template blend_functor<alpha_type,polarity>::type maFunctor; WrappedAccessor maWrappee; color_type maBlendColor; @@ -107,14 +107,14 @@ public: // ------------------------------------------------------- /// @return constant value, regardless of iterator content - template< typename IteratorType > value_type operator()(IteratorType const& ) const - { + template< typename IteratorType > value_type operator()(IteratorType const& ) const + { return maGetterValue; } /// @return constant value, regardless of iterator content template< typename IteratorType, class Difference > value_type operator()(IteratorType const& , Difference const& ) const - { + { return maGetterValue; } @@ -122,7 +122,7 @@ public: template< typename V, typename IteratorType > void set(V const& value, IteratorType const& i) const - { + { maWrappee.set( maFunctor( vigra::detail::RequiresExplicitCast<alpha_type>::cast(value), @@ -143,7 +143,7 @@ public: diff ); } }; - + } // namespace basebmp #endif /* INCLUDED_BASEBMP_COLORBLENDACCESSORADAPTER_HXX */ |