diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-27 09:52:13 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-27 13:47:30 +0200 |
commit | d3f80583ee90c9b652ac5d1ef8957ec0db65fdd2 (patch) | |
tree | e1784e2afedaac96124317eb2e7900e9c10d7528 /include | |
parent | 49f2d7cd98cefdbe9e179a8558cf89e09d8019e5 (diff) |
-Werror,-Wvarargs
"passing an object that undergoes default argument promotion to 'va_start' has
undefined behavior [-Werror,-Wvarargs]"
just replace the variadic function with one taking an initializer list
Change-Id: Ied3dfe835dcebef48cf35374ec4d8835f98e6779
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/serviceinfohelper.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/comphelper/serviceinfohelper.hxx b/include/comphelper/serviceinfohelper.hxx index 9589451ffa3c..9cd2076e5d95 100644 --- a/include/comphelper/serviceinfohelper.hxx +++ b/include/comphelper/serviceinfohelper.hxx @@ -20,6 +20,10 @@ #ifndef INCLUDED_COMPHELPER_SERVICEINFOHELPER_HXX #define INCLUDED_COMPHELPER_SERVICEINFOHELPER_HXX +#include <sal/config.h> + +#include <initializer_list> + #include <com/sun/star/lang/XServiceInfo.hpp> #include <comphelper/comphelperdllapi.h> @@ -39,7 +43,7 @@ public: virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(css::uno::RuntimeException, std::exception) override; // helper - static void addToSequence( css::uno::Sequence< OUString >& rSeq, sal_uInt16 nServices, /* sal_Char* */... ) throw(); + static void addToSequence( css::uno::Sequence< OUString >& rSeq, std::initializer_list<OUString> services ) throw(); protected: ~ServiceInfoHelper() {} |