diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-09 14:06:17 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-13 19:42:38 +0100 |
commit | 516d38bd7bca5562ebb7b21b96a5dd62152ee52e (patch) | |
tree | 813e31b56bbda54c6010b9e97638c7fa60d3cc6f /common/typeindex.h | |
parent | c0862b91e69c82a33df50b1a6913741bbecbc950 (diff) | |
download | sink-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.h | 6 |
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 | { |