X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b8865e92caa043cf31043e38a788d8d4a9286e0..b6e2eddeaf7e559589ce41ac41e88f9bd71c5a08:/include/wx/generic/treectlg.h?ds=inline diff --git a/include/wx/generic/treectlg.h b/include/wx/generic/treectlg.h index c386e70fe8..e4e7ecbceb 100644 --- a/include/wx/generic/treectlg.h +++ b/include/wx/generic/treectlg.h @@ -12,7 +12,7 @@ #ifndef _GENERIC_TREECTRL_H_ #define _GENERIC_TREECTRL_H_ -#if defined(__GNUG__) && !defined(__APPLE__) +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "treectlg.h" #endif @@ -443,8 +443,7 @@ protected: // find the first item starting with the given prefix after the given item wxTreeItemId FindItem(const wxTreeItemId& id, const wxString& prefix) const; - bool HasButtons() const - { return HasFlag(wxTR_HAS_BUTTONS) && (m_imageListButtons != NULL); } + bool HasButtons() const { return HasFlag(wxTR_HAS_BUTTONS); } void CalculateLineHeight(); int GetLineHeight(wxGenericTreeItem *item) const;