Commit 7c7098c3 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont Committed by Jean-Baptiste Kempf

Replace vlc_bool_t by bool, VLC_TRUE by true and VLC_FALSE by false.

This improves readability a lot and prevent us from reinventing the wheel.
parent 83bf6322
......@@ -249,7 +249,7 @@ STDMETHODIMP VLCControl::shuttle(int seconds)
result = _p_instance->getVLCObject(&i_vlc);
if( SUCCEEDED(result) )
{
VLC_TimeSet(i_vlc, seconds, VLC_TRUE);
VLC_TimeSet(i_vlc, seconds, true);
}
}
return result;
......@@ -373,7 +373,7 @@ STDMETHODIMP VLCControl::setVariable(BSTR name, VARIANT value)
case VLC_VAR_BOOL:
hr = VariantChangeType(&arg, &value, 0, VT_BOOL);
if( SUCCEEDED(hr) )
val.b_bool = (VARIANT_TRUE == V_BOOL(&arg)) ? VLC_TRUE : VLC_FALSE;
val.b_bool = (VARIANT_TRUE == V_BOOL(&arg)) ? true : false;
break;
case VLC_VAR_INTEGER:
......@@ -420,7 +420,7 @@ STDMETHODIMP VLCControl::setVariable(BSTR name, VARIANT value)
switch( V_VT(&value) )
{
case VT_BOOL:
val.b_bool = (VARIANT_TRUE == V_BOOL(&value)) ? VLC_TRUE : VLC_FALSE;
val.b_bool = (VARIANT_TRUE == V_BOOL(&value)) ? true : false;
i_type = VLC_VAR_BOOL;
break;
case VT_I4:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment