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:
Vadim Zeitlin 2017-12-20 00:06:08 +01:00
parent 8c06a24da4
commit 91875045ac
2 changed files with 9 additions and 7 deletions

View File

@ -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.
//

View File

@ -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