Kaydet (Commit) 149469ca authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-Werror,-Wwritable-strings

Change-Id: Ib407ba5bb6b20281948ba83a4e150b9fe19c19d9
üst 3fea33d6
......@@ -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))
......
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