Commit 92bf040d authored by Ronan Abhamon's avatar Ronan Abhamon

fix(src/components/settings/SettingsModel): use pointers for `port range` functions

parent 8dc2d79f
......@@ -411,7 +411,7 @@ void SettingsModel::setAdaptiveRateControlEnabled (bool status) {
QList<int> SettingsModel::getAudioPortRange () const {
int a, b;
CoreManager::getInstance()->getCore()->getAudioPortRange(a, b);
CoreManager::getInstance()->getCore()->getAudioPortRange(&a, &b);
return QList<int>() << a << b;
}
......@@ -432,7 +432,7 @@ void SettingsModel::setAudioPortRange (const QList<int> &range) {
QList<int> SettingsModel::getVideoPortRange () const {
int a, b;
CoreManager::getInstance()->getCore()->getVideoPortRange(a, b);
CoreManager::getInstance()->getCore()->getVideoPortRange(&a, &b);
return QList<int>() << a << b;
}
......
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