Don't make wxStaticBoxBase::GetBordersForSizer() inline
Move the function definition to the source file, there doesn't seem to be any reason to keep it in the header.
This commit is contained in:
parent
8c06a24da4
commit
91875045ac
@ -37,13 +37,7 @@ public:
|
||||
//
|
||||
// the top border is the margin at the top (where the title is),
|
||||
// borderOther is the margin on all other sides
|
||||
virtual void GetBordersForSizer(int *borderTop, int *borderOther) const
|
||||
{
|
||||
const int BORDER = FromDIP(5); // FIXME: hardcoded value
|
||||
|
||||
*borderTop = GetLabel().empty() ? BORDER : GetCharHeight();
|
||||
*borderOther = BORDER;
|
||||
}
|
||||
virtual void GetBordersForSizer(int *borderTop, int *borderOther) const;
|
||||
|
||||
// This is an internal function currently used by wxStaticBoxSizer only.
|
||||
//
|
||||
|
@ -38,6 +38,14 @@ wxStaticBoxBase::wxStaticBoxBase()
|
||||
#endif
|
||||
}
|
||||
|
||||
void wxStaticBoxBase::GetBordersForSizer(int *borderTop, int *borderOther) const
|
||||
{
|
||||
const int BORDER = FromDIP(5); // FIXME: hardcoded value
|
||||
|
||||
*borderTop = GetLabel().empty() ? BORDER : GetCharHeight();
|
||||
*borderOther = BORDER;
|
||||
}
|
||||
|
||||
void wxStaticBoxBase::WXDestroyWithoutChildren()
|
||||
{
|
||||
// Notice that we must make a copy of the list as it will be changed by
|
||||
|
Loading…
Reference in New Issue
Block a user