summaryrefslogtreecommitdiffstats
path: root/include/o3tl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-22 15:23:50 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2015-07-15 23:40:19 +0000
commite51fa143587d018b75db08e60cf27ff932b1cf8d (patch)
treeefef96fb683eca20cd9eb65a8794264784efc950 /include/o3tl
parenttdf#87437 exclude CR/cell break from redline deletions (diff)
downloadcore-e51fa143587d018b75db08e60cf27ff932b1cf8d.tar.gz
core-e51fa143587d018b75db08e60cf27ff932b1cf8d.zip
create a macro to tidy up the declaration sites of o3tl::typed_flags_set
Change-Id: Ifb8fd4fd5128188420f1dfda6b6f695160d5e77a Reviewed-on: https://gerrit.libreoffice.org/15865 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'include/o3tl')
-rw-r--r--include/o3tl/typed_flags_set.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/o3tl/typed_flags_set.hxx b/include/o3tl/typed_flags_set.hxx
index 76cefc50b32c..d997f6ac6afc 100644
--- a/include/o3tl/typed_flags_set.hxx
+++ b/include/o3tl/typed_flags_set.hxx
@@ -317,6 +317,15 @@ inline typename o3tl::typed_flags<E>::Self operator ^=(
return lhs;
}
+/*
+ * Make the declaration sites a little less verbose
+ */
+#define DECLARE_TYPED_FLAGS(T,V) \
+ namespace o3tl \
+ { \
+ template<> struct typed_flags<T> : is_typed_flags<T,V> {}; \
+ } \
+
#endif /* INCLUDED_O3TL_TYPED_FLAGS_SET_HXX */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */