From 104733550eb99e88f3100557b773036703eb145d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 31 Mar 2020 17:09:40 +0200 Subject: [PATCH] Use wxGridCellAttrPtr typedef No real changes, just make the code slightly shorter. --- samples/grid/griddemo.cpp | 3 +-- samples/grid/griddemo.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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; }; // ----------------------------------------------------------------------------