diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-20 23:26:47 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-24 08:47:02 +0100 |
commit | 149469ca9efda157f8ce2ff6cd3024177656da6b (patch) | |
tree | 9b350e1ccfeb189aef4378431959c274724fef60 /extensions | |
parent | 3fea33d6c84d9d3ab1663fc3579adcc69477f745 (diff) |
-Werror,-Wwritable-strings
Change-Id: Ib407ba5bb6b20281948ba83a4e150b9fe19c19d9
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/ole/unoobjw.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/ole/unoobjw.cxx b/extensions/source/ole/unoobjw.cxx index 534594206a0a..49fcf0f79a55 100644 --- a/extensions/source/ole/unoobjw.cxx +++ b/extensions/source/ole/unoobjw.cxx @@ -373,10 +373,10 @@ void InterfaceOleWrapper_Impl::convertDispparamsArgs(DISPID id, // Get the IN-param at index "0" IDispatch* pdisp= pdispparams->rgvarg[i].pdispVal; - OLECHAR* sindex= L"0"; + OLECHAR const * sindex= L"0"; DISPID id; DISPPARAMS noParams= {0,0,0,0}; - if(SUCCEEDED( hr= pdisp->GetIDsOfNames( IID_NULL, &sindex, 1, LOCALE_USER_DEFAULT, &id))) + if(SUCCEEDED( hr= pdisp->GetIDsOfNames( IID_NULL, const_cast<OLECHAR **>(&sindex), 1, LOCALE_USER_DEFAULT, &id))) hr= pdisp->Invoke( id, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_PROPERTYGET, & noParams, & varParam, NULL, NULL); if( FAILED( hr)) |