summaryrefslogtreecommitdiffstats
path: root/common/typeindex.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-02-09 14:06:17 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-02-13 19:42:38 +0100
commit516d38bd7bca5562ebb7b21b96a5dd62152ee52e (patch)
tree813e31b56bbda54c6010b9e97638c7fa60d3cc6f /common/typeindex.h
parentc0862b91e69c82a33df50b1a6913741bbecbc950 (diff)
downloadsink-516d38bd7bca5562ebb7b21b96a5dd62152ee52e.tar.gz
sink-516d38bd7bca5562ebb7b21b96a5dd62152ee52e.zip
Cleaner index syntax, don't index messageid twice
Diffstat (limited to 'common/typeindex.h')
-rw-r--r--common/typeindex.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/typeindex.h b/common/typeindex.h
index 626959e..7ff2029 100644
--- a/common/typeindex.h
+++ b/common/typeindex.h
@@ -41,6 +41,12 @@ public:
41 template <typename T, typename S> 41 template <typename T, typename S>
42 void addPropertyWithSorting(const QByteArray &property, const QByteArray &sortProperty); 42 void addPropertyWithSorting(const QByteArray &property, const QByteArray &sortProperty);
43 43
44 template <typename T, typename S>
45 void addPropertyWithSorting()
46 {
47 addPropertyWithSorting<typename T::Type, typename S::Type>(T::name, S::name);
48 }
49
44 template <typename T> 50 template <typename T>
45 void addProperty() 51 void addProperty()
46 { 52 {