From 18dd332d7d490a4ae2626d10f963d0932880c5b5 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Wed, 2 Apr 2008 14:16:03 +0000 Subject: [PATCH] added castValue()-method git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@865 0778d3d1-df1d-0410-868b-ea421aaaa00d --- ChangeLog | 5 +++++ include/automatable_model.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index f9bdc8f25..e125d2da3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-04-02 Tobias Doerffel + + * include/automatable_model.h: + added castValue()-method + 2008-04-01 Tobias Doerffel * plugins/ladspa_effect/Makefile.am: diff --git a/include/automatable_model.h b/include/automatable_model.h index 86d1d11b4..44b1b5931 100644 --- a/include/automatable_model.h +++ b/include/automatable_model.h @@ -96,6 +96,11 @@ public: return( 1 ); } + template + static inline T castValue( V _v ) + { + return( static_cast( _v ) ); + } inline virtual T value( void ) const {