Use wxGridCellAttrPtr typedef
No real changes, just make the code slightly shorter.
This commit is contained in:
@@ -1605,8 +1605,7 @@ MyGridCellAttrProvider::MyGridCellAttrProvider()
|
||||
wxGridCellAttr *MyGridCellAttrProvider::GetAttr(int row, int col,
|
||||
wxGridCellAttr::wxAttrKind kind /* = wxGridCellAttr::Any */) const
|
||||
{
|
||||
wxObjectDataPtr<wxGridCellAttr>
|
||||
attr(wxGridCellAttrProvider::GetAttr(row, col, kind));
|
||||
wxGridCellAttrPtr attr(wxGridCellAttrProvider::GetAttr(row, col, kind));
|
||||
|
||||
if ( row % 2 )
|
||||
{
|
||||
|
@@ -301,7 +301,7 @@ public:
|
||||
wxGridCellAttr::wxAttrKind kind) const wxOVERRIDE;
|
||||
|
||||
private:
|
||||
wxObjectDataPtr<wxGridCellAttr> m_attrForOddRows;
|
||||
wxGridCellAttrPtr m_attrForOddRows;
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user