From 6746da5e537a480fae223d42dc62b158e6a75f13 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Mon, 18 Apr 2022 15:41:50 +0200 Subject: [PATCH] wxwidgets.cfg: Fixed some FPs for wxTextCtrl::GetSelection(), where the argument direction was wrongly set as input. --- cfg/wxwidgets.cfg | 4 ++-- test/cfg/wxwidgets.cpp | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg index e48ce8f51..71ea0ce13 100644 --- a/cfg/wxwidgets.cfg +++ b/cfg/wxwidgets.cfg @@ -14886,10 +14886,10 @@ wxItemKind kind = wxITEM_NORMAL) --> - + - + diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp index 75f71838f..d69e6c3fe 100644 --- a/test/cfg/wxwidgets.cpp +++ b/test/cfg/wxwidgets.cpp @@ -42,6 +42,16 @@ bool duplicateBreak_wxLogApiError(const wxString &msg, const HRESULT &hr, wxStri } #endif +void argDirection_wxTextCtrl_GetSelection(const wxTextCtrl *const textCtrl) +{ + // No warning is expected. Ensure both arguments are treated + // as output by library configuration + long start; + long end; + textCtrl->GetSelection(&start, &end); + if(start > 0 && end > 0){} +} + void useRetval_wxString_MakeCapitalized(wxString &str) { // No warning is expected for