aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-04-23 19:47:14 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-04-23 19:47:14 +0200
commit408785f0680a531c493de225fad60b6369227cfb (patch)
treea5dafb2f1800da2e77ee1409ad67b9f3571fe26d
parent534b6f3fb3a4bd14d78942cab7eb430dd98e471c (diff)
downloadlibquotient-408785f0680a531c493de225fad60b6369227cfb.tar.gz
libquotient-408785f0680a531c493de225fad60b6369227cfb.zip
Cleanup
-rw-r--r--lib/mxcreply.cpp1
-rw-r--r--lib/util.h6
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/mxcreply.cpp b/lib/mxcreply.cpp
index b757bb93..319d514a 100644
--- a/lib/mxcreply.cpp
+++ b/lib/mxcreply.cpp
@@ -5,7 +5,6 @@
#include <QtCore/QBuffer>
#include "accountregistry.h"
-#include "connection.h"
#include "room.h"
#ifdef Quotient_E2EE_ENABLED
diff --git a/lib/util.h b/lib/util.h
index b14e1648..3910059b 100644
--- a/lib/util.h
+++ b/lib/util.h
@@ -109,8 +109,8 @@ private:
*/
template <typename InputIt, typename ForwardIt, typename Pred>
inline std::pair<InputIt, ForwardIt> findFirstOf(InputIt first, InputIt last,
- ForwardIt sFirst,
- ForwardIt sLast, Pred pred)
+ ForwardIt sFirst,
+ ForwardIt sLast, Pred pred)
{
for (; first != last; ++first)
for (auto it = sFirst; it != sLast; ++it)
@@ -156,7 +156,7 @@ inline ImplPtr<ImplType> makeImpl(ArgTs&&... args)
}
template <typename ImplType>
-const inline ImplPtr<ImplType> ZeroImpl()
+constexpr ImplPtr<ImplType> ZeroImpl()
{
return { nullptr, [](ImplType*) { /* nullptr doesn't need deletion */ } };
}