added castValue()-method

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@865 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-04-02 14:16:03 +00:00
parent 7f51a39de2
commit 18dd332d7d
2 changed files with 10 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2008-04-02 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* include/automatable_model.h:
added castValue()-method
2008-04-01 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* plugins/ladspa_effect/Makefile.am:

View File

@@ -96,6 +96,11 @@ public:
return( 1 );
}
template<class V>
static inline T castValue( V _v )
{
return( static_cast<T>( _v ) );
}
inline virtual T value( void ) const
{