[vlmc-devel] SettingValue: Assert when setting limits to a non-clamped value
Hugo Beauzée-Luyssen
git at videolan.org
Sat Feb 8 00:47:07 CET 2014
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sat Feb 8 01:39:12 2014 +0200| [ef8b63a7d9af8a680c0eeef1fc0f23c107c280b5] | committer: Hugo Beauzée-Luyssen
SettingValue: Assert when setting limits to a non-clamped value
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=ef8b63a7d9af8a680c0eeef1fc0f23c107c280b5
---
src/Settings/SettingValue.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/Settings/SettingValue.cpp b/src/Settings/SettingValue.cpp
index a39086d..ff9c230 100644
--- a/src/Settings/SettingValue.cpp
+++ b/src/Settings/SettingValue.cpp
@@ -93,6 +93,7 @@ SettingValue::flags() const
void
SettingValue::setLimits( const QVariant& min, const QVariant& max )
{
+ Q_ASSERT_X( ( ( m_flags & Clamped ) != 0 ), "SettingVaklue", "Setting limits to a non-clamped value" );
if ( min.isValid() == true )
m_min = min;
if ( max.isValid() == true )
More information about the Vlmc-devel
mailing list