aboutsummaryrefslogtreecommitdiff
path: root/lib/events/directchatevent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events/directchatevent.cpp')
-rw-r--r--lib/events/directchatevent.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/events/directchatevent.cpp b/lib/events/directchatevent.cpp
index 266d60d8..b4027e16 100644
--- a/lib/events/directchatevent.cpp
+++ b/lib/events/directchatevent.cpp
@@ -13,26 +13,25 @@
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "directchatevent.h"
#include <QtCore/QJsonArray>
-using namespace QMatrixClient;
+using namespace Quotient;
QMultiHash<QString, QString> DirectChatEvent::usersToDirectChats() const
{
QMultiHash<QString, QString> result;
const auto& json = contentJson();
- for (auto it = json.begin(); it != json.end(); ++it)
- {
+ for (auto it = json.begin(); it != json.end(); ++it) {
// Beware of range-for's over temporary returned from temporary
// (see the bottom of
// http://en.cppreference.com/w/cpp/language/range-for#Explanation)
const auto roomIds = it.value().toArray();
- for (const auto& roomIdValue: roomIds)
+ for (const auto& roomIdValue : roomIds)
result.insert(it.key(), roomIdValue.toString());
}
return result;