Add correct wxArgNormalizer code for signed char.
Signed char is distict type (see 3.9.1 [basic.fundamental] part of the standard), covering just char and unsigned char is not enough. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -607,6 +607,15 @@ struct wxArgNormalizer<unsigned char>
|
|||||||
: wxArgNormalizerNarrowChar<unsigned char>(value, fmt, index) {}
|
: wxArgNormalizerNarrowChar<unsigned char>(value, fmt, index) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template<>
|
||||||
|
struct wxArgNormalizer<signed char>
|
||||||
|
: public wxArgNormalizerNarrowChar<signed char>
|
||||||
|
{
|
||||||
|
wxArgNormalizer(signed char value,
|
||||||
|
const wxFormatString *fmt, unsigned index)
|
||||||
|
: wxArgNormalizerNarrowChar<signed char>(value, fmt, index) {}
|
||||||
|
};
|
||||||
|
|
||||||
#endif // wxUSE_UNICODE
|
#endif // wxUSE_UNICODE
|
||||||
|
|
||||||
// convert references:
|
// convert references:
|
||||||
@@ -617,6 +626,7 @@ WX_ARG_NORMALIZER_FORWARD(const wchar_t&, wchar_t);
|
|||||||
|
|
||||||
WX_ARG_NORMALIZER_FORWARD(const char&, char);
|
WX_ARG_NORMALIZER_FORWARD(const char&, char);
|
||||||
WX_ARG_NORMALIZER_FORWARD(const unsigned char&, unsigned char);
|
WX_ARG_NORMALIZER_FORWARD(const unsigned char&, unsigned char);
|
||||||
|
WX_ARG_NORMALIZER_FORWARD(const signed char&, signed char);
|
||||||
|
|
||||||
|
|
||||||
#undef WX_ARG_NORMALIZER_FORWARD
|
#undef WX_ARG_NORMALIZER_FORWARD
|
||||||
|
Reference in New Issue
Block a user