[vlmc-devel] Settings: Use vlmcCritical instead of Q_ASSERT_X

Yikai Lu git at videolan.org
Tue Jun 6 18:19:11 CEST 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Mon Jun  5 16:31:24 2017 +0900| [4c0557dd8ece233b54de048dc7f94b5bb449628d] | committer: Yikai Lu

Settings: Use vlmcCritical instead of Q_ASSERT_X

> https://code.videolan.org/videolan/vlmc/commit/4c0557dd8ece233b54de048dc7f94b5bb449628d
---

 src/Settings/Settings.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Settings/Settings.cpp b/src/Settings/Settings.cpp
index 6f84e737..710ce0fd 100644
--- a/src/Settings/Settings.cpp
+++ b/src/Settings/Settings.cpp
@@ -212,7 +212,7 @@ Settings::setValue( const QString &key, const QVariant &value )
         (*it)->set( value );
         return true;
     }
-    Q_ASSERT_X( false, __FILE__, "setting value without a created variable" );
+    vlmcCritical() << "setting value without a created variable: " << key;
     return false;
 }
 void
@@ -235,7 +235,7 @@ Settings::value( const QString &key )
     SettingMap::iterator it = m_settings.find( key );
     if ( it != m_settings.end() )
         return *it;
-    Q_ASSERT_X( false, __FILE__, "fetching value without a created variable" );
+    vlmcCritical() << "fetching value without a created variable" << key;
     return nullptr;
 }
 



More information about the Vlmc-devel mailing list