Skip to content
Snippets Groups Projects
Commit 85f3d3d8 authored by Emmanuel Lepage Vallee's avatar Emmanuel Lepage Vallee
Browse files

Make clang scan-build happy

parent 3c5603ce
Branches
Tags
No related merge requests found
......@@ -206,7 +206,9 @@ void AccountModelPrivate::slotAccountChanged(const QString& account,const QStrin
if (status != "OK") //Do not pollute the log
qDebug() << "Account" << account << "status changed to" << status;
}
a->d_ptr->m_LastSipRegistrationStatus = status;
if (a)
a->d_ptr->m_LastSipRegistrationStatus = status;
ConfigurationManagerInterface& configurationManager = DBus::ConfigurationManager::instance();
......
......@@ -869,7 +869,10 @@ void Call::setDialNumber(const ContactMethod* number)
}
if (d_ptr->m_pDialNumber && number)
d_ptr->m_pDialNumber->setUri(number->uri());
emit dialNumberChanged(d_ptr->m_pDialNumber->uri());
if (d_ptr->m_pDialNumber)
emit dialNumberChanged(d_ptr->m_pDialNumber->uri());
emit changed();
emit changed(this);
}
......
......@@ -187,10 +187,12 @@ void VideoRendererManagerPrivate::startedDecoding(const QString& id, const QStri
}
else {
m_lRenderers[rid]->setSize(res);
#ifdef ENABLE_LIBWRAP
DBus::VideoManager::instance().registerSinkTarget(id, [this, id, width, height] (const unsigned char* frame) {
static_cast<Video::DirectRenderer*>(m_lRenderers[id.toLatin1()])->onNewFrame(
QByteArray::fromRawData(reinterpret_cast<const char *>(frame), width*height));
});
#endif
#if !defined(Q_OS_DARWIN)
static_cast<Video::ShmRenderer*>(m_lRenderers[rid])->setShmPath(shmPath);
......
......@@ -718,6 +718,9 @@ bool ProfileModel::dropMimeData(const QMimeData *data, Qt::DropAction action, in
destIdx = row;
}
if (!newProfile)
return false;
Node* accountProfile = d_ptr->m_pProfileBackend->m_pEditor->m_hProfileByAccountId[accountId];
for (Node* acc : accountProfile->children) {
if(acc->account->id() == accountId) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment