Move comment in wxOSX wxToolBar code to a more logical place

No real changes, just move the comment in front of the line it
documents.
This commit is contained in:
Vadim Zeitlin
2021-08-06 21:22:08 +02:00
parent ce48d01e8a
commit c7ed88af7c

View File

@@ -178,14 +178,13 @@ public:
wxToolBar *tbar = (wxToolBar*) GetToolBar();
int style = (tbar ? tbar->GetWindowStyleFlag() : 0);
// strip mnemonics from the label for compatibility with the usual
// labels in wxStaticText sense
wxCFStringRef l(wxStripMenuCodes(m_label), GetToolBarFontEncoding());
wxCFStringRef sh( GetShortHelp(), GetToolBarFontEncoding() );
#if wxOSX_USE_NATIVE_TOOLBAR
if ( m_toolbarItem )
{
// strip mnemonics from the label for compatibility with the usual
// labels in wxStaticText sense
[m_toolbarItem setLabel:l.AsNSString()];
[m_toolbarItem setToolTip:sh.AsNSString()];