diff options
Diffstat (limited to 'sc/source/filter/inc/xestream.hxx')
-rw-r--r-- | sc/source/filter/inc/xestream.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/inc/xestream.hxx b/sc/source/filter/inc/xestream.hxx index 93b070a55da9..6b8152bc6b48 100644 --- a/sc/source/filter/inc/xestream.hxx +++ b/sc/source/filter/inc/xestream.hxx @@ -287,12 +287,12 @@ public: sax_fastparser::FSHelperPtr GetStreamForPath( const OUString& rPath ); template <typename Str, typename... Args> - void WriteAttributes(sal_Int32 nAttribute, const Str& value, Args... rest) + void WriteAttributes(sal_Int32 nAttribute, Str&& value, Args&&... rest) { - WriteAttribute(nAttribute, value); + WriteAttribute(nAttribute, std::forward<Str>(value)); // coverity[stray_semicolon : FALSE] - coverity parse error if constexpr(sizeof...(rest) > 0) - WriteAttributes(rest...); + WriteAttributes(std::forward<Args>(rest)...); } sax_fastparser::FSHelperPtr CreateOutputStream ( |