wxwidgets.cfg: Fixed FPs due to wrong direction attribute set for wxString::ToDouble and wxString::ToCDouble().

This commit is contained in:
orbitcowboy 2022-04-19 06:53:34 +02:00
parent 6746da5e53
commit 24303bfdd3
2 changed files with 19 additions and 1 deletions

View File

@ -9173,7 +9173,7 @@
<leak-ignore/>
<const/>
<returnValue type="bool"/>
<arg nr="1" direction="in">
<arg nr="1" direction="out">
<not-null/>
</arg>
</function>

View File

@ -42,6 +42,24 @@ bool duplicateBreak_wxLogApiError(const wxString &msg, const HRESULT &hr, wxStri
}
#endif
void argDirection_wxString_ToDouble(const wxString &str)
{
// No warning is expected. Ensure both arguments are treated
// as output by library configuration
double value;
const bool convOk = str.ToDouble(&value);
if(convOk && value <= 42.0){}
}
void argDirection_wxString_ToCDouble(const wxString &str)
{
// No warning is expected. Ensure both arguments are treated
// as output by library configuration
double value;
const bool convOk = str.ToCDouble(&value);
if(convOk && value <= 42.0){}
}
void argDirection_wxTextCtrl_GetSelection(const wxTextCtrl *const textCtrl)
{
// No warning is expected. Ensure both arguments are treated