diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-22 07:47:07 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-22 08:48:49 +0200 |
commit | 960ac92107c8095368f4a29337a5644d99094f4f (patch) | |
tree | 973b6395ff204582c4f3dd6602120e127364e252 | |
parent | d370b676be33c03b5d8e7bdbfe11cb7ea6423e79 (diff) |
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.kaganski@collabora.com>
-rw-r--r-- | sc/source/filter/inc/xestream.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
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, |