"wxGDIObject * => &" changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1998-12-09 17:43:07 +00:00
parent 8bbe427f8e
commit 79490c3d8b
4 changed files with 19 additions and 16 deletions

View File

@@ -96,31 +96,34 @@ bool FortyApp::OnInit()
return true;
}
wxColour* FortyApp::BackgroundColour()
const wxColour& FortyApp::BackgroundColour()
{
if (!m_backgroundColour)
{
m_backgroundColour = new wxColour(0, 128, 0);
}
return m_backgroundColour;
return *m_backgroundColour;
}
wxBrush* FortyApp::BackgroundBrush()
const wxBrush& FortyApp::BackgroundBrush()
{
if (!m_backgroundBrush)
{
m_backgroundBrush = new wxBrush(*BackgroundColour(), wxSOLID);
}
return m_backgroundBrush;
return *m_backgroundBrush;
}
wxColour* FortyApp::TextColour()
const wxColour& FortyApp::TextColour()
{
if (!m_textColour)
{
m_textColour = new wxColour("BLACK");
}
return m_textColour;
return *m_textColour;
}
// My frame constructor