mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-27 08:49:19 +00:00
fix(src/app/paths/Paths): coding style
This commit is contained in:
parent
abfd1631fa
commit
e26dccebe0
1 changed files with 4 additions and 4 deletions
|
|
@ -20,6 +20,7 @@
|
|||
* Author: Ronan Abhamon
|
||||
*/
|
||||
|
||||
#include <linphone++/linphone.hh>
|
||||
#include <QCoreApplication>
|
||||
#include <QDir>
|
||||
#include <QFile>
|
||||
|
|
@ -30,7 +31,6 @@
|
|||
#include "config.h"
|
||||
|
||||
#include "Paths.hpp"
|
||||
#include <linphone++/linphone.hh>
|
||||
|
||||
#define PATH_ASSISTANT_CONFIG "/assistant/"
|
||||
#define PATH_AVATARS "/avatars/"
|
||||
|
|
@ -256,10 +256,10 @@ static void migrateConfigurationFile (const QString &oldPath, const QString &new
|
|||
}
|
||||
|
||||
static void setRlsUri (const QString &configPath) {
|
||||
shared_ptr<linphone::Config> config = linphone::Config::newWithFactory(Utils::appStringToCoreString(configPath), "");
|
||||
shared_ptr<linphone::Config> config = linphone::Config::newWithFactory(::Utils::appStringToCoreString(configPath), "");
|
||||
if (config->getString("sip", "rls_uri", "").empty()) {
|
||||
config->setString("sip", "rls_uri", "sips:rls@sip.linphone.org");
|
||||
config->sync();
|
||||
config->sync();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -272,7 +272,7 @@ void Paths::migrate () {
|
|||
|
||||
if (!filePathExists(newPath) && filePathExists(oldPath)) {
|
||||
migrateConfigurationFile(oldPath, newPath);
|
||||
/* Define RLS uri so that presence switches from peer-to-peer mode to list mode */
|
||||
/* Define RLS uri so that presence switches from peer-to-peer mode to list mode. */
|
||||
setRlsUri(newPath);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue