From daa2af7fe3a5247aa0cdd473e559e4197746a31a Mon Sep 17 00:00:00 2001
From: Alexandre Lision <alexandre.lision@savoirfairelinux.com>
Date: Fri, 10 Apr 2015 15:04:22 -0400
Subject: [PATCH] fix compilation with clang

replace faulty lambda with a private slot

Refs #70609
---
 src/accountmodel.cpp         | 9 ++++++---
 src/private/accountmodel_p.h | 1 +
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/accountmodel.cpp b/src/accountmodel.cpp
index d9ec60d1..894b9d15 100644
--- a/src/accountmodel.cpp
+++ b/src/accountmodel.cpp
@@ -154,9 +154,7 @@ Account* AccountModel::ip2ip() const
       foreach(Account* a, d_ptr->m_lAccounts) {
          if (a->id() == DRing::Account::ProtocolNames::IP2IP) {
             d_ptr->m_pIP2IP = a;
-            connect(a,&Account::enabled,[this]() {
-               emit supportedProtocolsChanged();
-            });
+            connect(a,SIGNAL(enabled()),this,SLOT(slotSupportedProtocolsChanged()));
          }
       }
    }
@@ -287,6 +285,11 @@ void AccountModelPrivate::slotDaemonAccountChanged(const QString& account, const
 
 }
 
+void AccountModelPrivate::slotSupportedProtocolsChanged()
+{
+    emit q_ptr->supportedProtocolsChanged();
+}
+
 ///Tell the model something changed
 void AccountModelPrivate::slotAccountChanged(Account* a)
 {
diff --git a/src/private/accountmodel_p.h b/src/private/accountmodel_p.h
index caf4fe3c..dc192b99 100644
--- a/src/private/accountmodel_p.h
+++ b/src/private/accountmodel_p.h
@@ -65,6 +65,7 @@ public:
 public Q_SLOTS:
    void slotDaemonAccountChanged(const QString& account, const QString&  registration_state, unsigned code, const QString& status);
    void slotAccountChanged(Account* a);
+   void slotSupportedProtocolsChanged();
    void slotVoiceMailNotify( const QString& accountID , int count );
    void slotAccountPresenceEnabledChanged(bool state);
    void slotVolatileAccountDetailsChange(const QString& accountId, const MapStringString& details);
-- 
GitLab