Correct misleading comment for wxString::IsSameAs() overloads
They can't be removed as doing it would result in errors when compiling any code using IsSameAs() due to ambiguous conversions.
This commit is contained in:
parent
d81c99f344
commit
2d1928e6aa
1 changed files with 3 additions and 1 deletions
|
|
@ -2094,7 +2094,9 @@ public:
|
|||
{ return IsSameAs(str.data(), compareWithCase); }
|
||||
// comparison with a single character: returns true if equal
|
||||
bool IsSameAs(wxUniChar c, bool compareWithCase = true) const;
|
||||
// FIXME-UTF8: remove these overloads
|
||||
// we need all these overloads too as any of the types below can be
|
||||
// converted either to wxUniChar or wxString, so without them, calling
|
||||
// IsSameAs('x') would result in an ambiguity.
|
||||
bool IsSameAs(wxUniCharRef c, bool compareWithCase = true) const
|
||||
{ return IsSameAs(wxUniChar(c), compareWithCase); }
|
||||
bool IsSameAs(char c, bool compareWithCase = true) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue