Don't use vestor::data() to get access to the raw vector data
This method is available since C++ 11 so it can't be used currently.
This commit is contained in:
@@ -2333,7 +2333,9 @@ public:
|
||||
protected:
|
||||
void DoAcquireResource() wxOVERRIDE
|
||||
{
|
||||
HRESULT hr = GetContext()->CreateGradientStopCollection(m_gradientStops.data(),
|
||||
wxCHECK_RET(!m_gradientStops.empty(), "No gradient stops provided");
|
||||
|
||||
HRESULT hr = GetContext()->CreateGradientStopCollection(&m_gradientStops[0],
|
||||
m_gradientStops.size(), D2D1_GAMMA_2_2, D2D1_EXTEND_MODE_CLAMP, &m_nativeResource);
|
||||
wxCHECK_HRESULT_RET(hr);
|
||||
}
|
||||
|
Reference in New Issue
Block a user