diff options
Diffstat (limited to 'slideshow/source/engine/activities/accumulation.hxx')
-rw-r--r-- | slideshow/source/engine/activities/accumulation.hxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/slideshow/source/engine/activities/accumulation.hxx b/slideshow/source/engine/activities/accumulation.hxx index 40257f347f24..b5b24c44509d 100644 --- a/slideshow/source/engine/activities/accumulation.hxx +++ b/slideshow/source/engine/activities/accumulation.hxx @@ -1,7 +1,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 @@ -41,7 +41,7 @@ namespace slideshow This template handles value accumulation across repeated effect runs: returned is the end value times the repeat count, plus the current value. - + @param rEndValue End value of the simple animation. @@ -52,35 +52,35 @@ namespace slideshow @param rCurrValue Current animation value */ - template< typename ValueType > ValueType accumulate( const ValueType& rEndValue, - sal_uInt32 nRepeatCount, - const ValueType& rCurrValue ) + template< typename ValueType > ValueType accumulate( const ValueType& rEndValue, + sal_uInt32 nRepeatCount, + const ValueType& rCurrValue ) { return nRepeatCount*rEndValue + rCurrValue; } /// Specialization for non-addable enums/constant values - template<> sal_Int16 accumulate< sal_Int16 >( const sal_Int16&, - sal_uInt32, - const sal_Int16& rCurrValue ) + template<> sal_Int16 accumulate< sal_Int16 >( const sal_Int16&, + sal_uInt32, + const sal_Int16& rCurrValue ) { // always return rCurrValue, it's forbidden to add enums/constant values... return rCurrValue; } /// Specialization for non-addable strings - template<> ::rtl::OUString accumulate< ::rtl::OUString >( const ::rtl::OUString&, + template<> ::rtl::OUString accumulate< ::rtl::OUString >( const ::rtl::OUString&, sal_uInt32, - const ::rtl::OUString& rCurrValue ) + const ::rtl::OUString& rCurrValue ) { // always return rCurrValue, it's impossible to add strings... return rCurrValue; } /// Specialization for non-addable bools - template<> bool accumulate< bool >( const bool&, - sal_uInt32, - const bool& bCurrValue ) + template<> bool accumulate< bool >( const bool&, + sal_uInt32, + const bool& bCurrValue ) { // always return bCurrValue, SMIL spec requires to ignore // cumulative behaviour for bools. |