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 *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 )
|
||||||
{
|
{
|
||||||
|
@@ -301,7 +301,7 @@ public:
|
|||||||
wxGridCellAttr::wxAttrKind kind) const wxOVERRIDE;
|
wxGridCellAttr::wxAttrKind kind) const wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxObjectDataPtr<wxGridCellAttr> m_attrForOddRows;
|
wxGridCellAttrPtr m_attrForOddRows;
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user