https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e825783b75ce833ec60ed…
commit e825783b75ce833ec60eded2068211d9285ab743
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Mon Jun 3 09:14:21 2019 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Sat Jul 20 13:56:18 2019 +0200
[PSDK] Remove default value for BSTR parameter in msxml2.idl
Fixes GCC 8 warning:
In file included from base/applications/msconfig_new/xmldomparser.hpp:26,
from base/applications/msconfig_new/toolspage.cpp:11:
sdk/include/psdk/msxml2.h:12705:20: error: ISO C++ forbids converting a string
constant to 'BSTR' {aka 'wchar_t*'} [-Werror=write-strings]
BSTR uri = L"x") = 0;
^~~~
---
sdk/include/psdk/msxml2.idl | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/sdk/include/psdk/msxml2.idl b/sdk/include/psdk/msxml2.idl
index 84555784f61..dc2a4a8a4b5 100644
--- a/sdk/include/psdk/msxml2.idl
+++ b/sdk/include/psdk/msxml2.idl
@@ -1258,7 +1258,7 @@ interface IXSLProcessor : IDispatch
[id(DISPID_XMLDOM_PROCESSOR_SETSTARTMODE)]
HRESULT setStartMode(
[in] BSTR p,
- [in, defaultvalue(L"")] BSTR uri);
+ [in] BSTR uri);
[propget, id(DISPID_XMLDOM_PROCESSOR_STARTMODE)]
HRESULT startMode([retval, out] BSTR *p);
@@ -1286,7 +1286,11 @@ interface IXSLProcessor : IDispatch
HRESULT addParameter(
[in] BSTR p,
[in] VARIANT var,
+#ifndef __REACTOS__
[in, defaultvalue(L"")] BSTR uri);
+#else
+ [in] BSTR uri);
+#endif
[id(DISPID_XMLDOM_PROCESSOR_ADDOBJECT)]
HRESULT addObject(