Kaydet (Commit) 960ac921 authored tarafından Mike Kaganski's avatar Mike Kaganski

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: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst d370b676
...@@ -290,9 +290,9 @@ public: ...@@ -290,9 +290,9 @@ public:
void WriteAttributes(sal_Int32 nAttribute, const Str& value, Args... rest) void WriteAttributes(sal_Int32 nAttribute, const Str& value, Args... rest)
{ {
WriteAttribute(nAttribute, value); WriteAttribute(nAttribute, value);
if constexpr(sizeof...(rest) > 0)
WriteAttributes(rest...); WriteAttributes(rest...);
} }
static void WriteAttributes() {}
sax_fastparser::FSHelperPtr CreateOutputStream ( sax_fastparser::FSHelperPtr CreateOutputStream (
const OUString& sFullStream, const OUString& sFullStream,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment