diff --git a/samples/grid/griddemo.cpp b/samples/grid/griddemo.cpp index 013afb6045..62560cc04a 100644 --- a/samples/grid/griddemo.cpp +++ b/samples/grid/griddemo.cpp @@ -1605,8 +1605,7 @@ MyGridCellAttrProvider::MyGridCellAttrProvider() wxGridCellAttr *MyGridCellAttrProvider::GetAttr(int row, int col, wxGridCellAttr::wxAttrKind kind /* = wxGridCellAttr::Any */) const { - wxObjectDataPtr - attr(wxGridCellAttrProvider::GetAttr(row, col, kind)); + wxGridCellAttrPtr attr(wxGridCellAttrProvider::GetAttr(row, col, kind)); if ( row % 2 ) { diff --git a/samples/grid/griddemo.h b/samples/grid/griddemo.h index 68319b204a..784e0fca3d 100644 --- a/samples/grid/griddemo.h +++ b/samples/grid/griddemo.h @@ -301,7 +301,7 @@ public: wxGridCellAttr::wxAttrKind kind) const wxOVERRIDE; private: - wxObjectDataPtr m_attrForOddRows; + wxGridCellAttrPtr m_attrForOddRows; }; // ----------------------------------------------------------------------------