Commit 4c0557dd authored by luyikei's avatar luyikei

Settings: Use vlmcCritical instead of Q_ASSERT_X

parent b4d7c491
......@@ -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;
}
......
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