From 6c6522736d7d0e8a0e51559bca7b7e7fdfd3c88a Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Wed, 8 Jun 2016 00:59:23 +0200 Subject: [PATCH] Make a public free function private In cfe9625a0d23b854929dfa0ca996e3477d0fbf2d the free function MSWShouldBeChecked was introduced in toolbar.cpp and mistakenly made inline. Fix by making it static instead. (cherry picked from commit 54e6f6e7b85d084677d905adf7ca48758cf31d02) --- src/msw/toolbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/toolbar.cpp b/src/msw/toolbar.cpp index 51a5f2422b..40051962f9 100644 --- a/src/msw/toolbar.cpp +++ b/src/msw/toolbar.cpp @@ -296,7 +296,7 @@ static RECT wxGetTBItemRect(HWND hwnd, int index, int id = wxID_NONE) return r; } -inline bool MSWShouldBeChecked(const wxToolBarToolBase *tool) +static bool MSWShouldBeChecked(const wxToolBarToolBase *tool) { // Apparently, "checked" state image overrides the "disabled" image // so we need to enforce our custom "disabled" image (if there is any)