sc/source/filter/inc/xestream.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 960ac92107c8095368f4a29337a5644d99094f4f Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Mon Apr 22 07:47:07 2019 +0200 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Mon Apr 22 08:48:49 2019 +0200 Simplify parameter pack handling: use if constexpr to drop extra function Change-Id: I09b7c4b90d28dc69c9788c645e057762af586879 Reviewed-on: https://gerrit.libreoffice.org/71063 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/sc/source/filter/inc/xestream.hxx b/sc/source/filter/inc/xestream.hxx index ecbe291621f7..0df1a030011d 100644 --- a/sc/source/filter/inc/xestream.hxx +++ b/sc/source/filter/inc/xestream.hxx @@ -290,9 +290,9 @@ public: void WriteAttributes(sal_Int32 nAttribute, const Str& value, Args... rest) { WriteAttribute(nAttribute, value); - WriteAttributes(rest...); + if constexpr(sizeof...(rest) > 0) + WriteAttributes(rest...); } - static void WriteAttributes() {} sax_fastparser::FSHelperPtr CreateOutputStream ( const OUString& sFullStream, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits