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

This commit is contained in:
Ronan Abhamon 2017-03-28 11:06:36 +02:00
parent 8dc2d79ffb
commit 92bf040ddc

View file

@ -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;
}