Move wxArtProvider::DoGetSizeHint() out of line and simplify it
This function has no need to be inline and it can be written in a more clear way by just calling GetNativeSizeHint() directly instead of passing by GetSizeHint(true).
This commit is contained in:
@@ -543,6 +543,11 @@ wxArtID wxArtProvider::GetMessageBoxIconId(int flags)
|
||||
return GetNativeSizeHint(client);
|
||||
}
|
||||
|
||||
wxSize wxArtProvider::DoGetSizeHint(const wxArtClient& client)
|
||||
{
|
||||
return GetNativeSizeHint(client);
|
||||
}
|
||||
|
||||
#ifndef wxHAS_NATIVE_ART_PROVIDER_IMPL
|
||||
/*static*/
|
||||
wxSize wxArtProvider::GetNativeSizeHint(const wxArtClient& WXUNUSED(client))
|
||||
|
||||
Reference in New Issue
Block a user