Use wxGridCellAttrPtr typedef

No real changes, just make the code slightly shorter.
This commit is contained in:
Vadim Zeitlin
2020-03-31 17:09:40 +02:00
parent ca30169767
commit 104733550e
2 changed files with 2 additions and 3 deletions

View File

@@ -1605,8 +1605,7 @@ MyGridCellAttrProvider::MyGridCellAttrProvider()
wxGridCellAttr *MyGridCellAttrProvider::GetAttr(int row, int col, wxGridCellAttr *MyGridCellAttrProvider::GetAttr(int row, int col,
wxGridCellAttr::wxAttrKind kind /* = wxGridCellAttr::Any */) const wxGridCellAttr::wxAttrKind kind /* = wxGridCellAttr::Any */) const
{ {
wxObjectDataPtr<wxGridCellAttr> wxGridCellAttrPtr attr(wxGridCellAttrProvider::GetAttr(row, col, kind));
attr(wxGridCellAttrProvider::GetAttr(row, col, kind));
if ( row % 2 ) if ( row % 2 )
{ {

View File

@@ -301,7 +301,7 @@ public:
wxGridCellAttr::wxAttrKind kind) const wxOVERRIDE; wxGridCellAttr::wxAttrKind kind) const wxOVERRIDE;
private: private:
wxObjectDataPtr<wxGridCellAttr> m_attrForOddRows; wxGridCellAttrPtr m_attrForOddRows;
}; };
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------