[vlc-devel] commit: Use VLC_VAR_CLASS when applicable. ( Rémi Duraffort )
git version control
git at videolan.org
Fri Jul 24 13:43:14 CEST 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Jul 24 13:11:18 2009 +0200| [9b5404a66693f5a1d02bb11cfe089bc654daf494] | committer: Rémi Duraffort
Use VLC_VAR_CLASS when applicable.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9b5404a66693f5a1d02bb11cfe089bc654daf494
---
modules/gui/qt4/components/extended_panels.cpp | 6 +++---
modules/misc/lua/libs/variables.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp
index 203b53b..1630ed7 100644
--- a/modules/gui/qt4/components/extended_panels.cpp
+++ b/modules/gui/qt4/components/extended_panels.cpp
@@ -426,7 +426,7 @@ void ExtVideo::setWidgetValue( QObject *widget )
"Module instance %s not found, looking in config values.",
qtu( module ) );
#endif
- i_type = config_GetType( p_intf, qtu( option ) ) & 0xf0;
+ i_type = config_GetType( p_intf, qtu( option ) ) & VLC_VAR_CLASS;
switch( i_type )
{
case VLC_VAR_INTEGER:
@@ -443,7 +443,7 @@ void ExtVideo::setWidgetValue( QObject *widget )
}
else
{
- i_type = var_Type( p_obj, qtu( option ) ) & 0xf0;
+ i_type = var_Type( p_obj, qtu( option ) ) & VLC_VAR_CLASS;
var_Get( p_obj, qtu( option ), &val );
vlc_object_release( p_obj );
}
@@ -540,7 +540,7 @@ void ExtVideo::updateFilterOptions()
QLineEdit *lineedit = qobject_cast<QLineEdit*> ( sender() );
QComboBox *combobox = qobject_cast<QComboBox*> ( sender() );
- i_type &= 0xf0;
+ i_type &= VLC_VAR_CLASS;
if( i_type == VLC_VAR_INTEGER || i_type == VLC_VAR_BOOL )
{
int i_int = 0;
diff --git a/modules/misc/lua/libs/variables.c b/modules/misc/lua/libs/variables.c
index 15e8649..c0b7765 100644
--- a/modules/misc/lua/libs/variables.c
+++ b/modules/misc/lua/libs/variables.c
@@ -48,7 +48,7 @@
*****************************************************************************/
int vlclua_pushvalue( lua_State *L, int i_type, vlc_value_t val )
{
- switch( i_type &= 0xf0 )
+ switch( i_type &= VLC_VAR_CLASS )
{
case VLC_VAR_VOID:
vlclua_error( L );
@@ -98,7 +98,7 @@ int vlclua_pushvalue( lua_State *L, int i_type, vlc_value_t val )
static int vlclua_tovalue( lua_State *L, int i_type, vlc_value_t *val )
{
- switch( i_type & 0xf0 )
+ switch( i_type & VLC_VAR_CLASS )
{
case VLC_VAR_VOID:
break;
More information about the vlc-devel
mailing list