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:
Artur Wieczorek
2020-02-09 23:11:27 +01:00
parent 55daa7103e
commit 5fb7f89b14

View File

@@ -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);
}