"wxGDIObject * => &" changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user