Add wxIntegerValidatorBase::ULongestValueType typedef
Allow just writing ULongestValueType instead of writing #ifdefs in several places.
This commit is contained in:
parent
94289a46b1
commit
483856f3d3
2 changed files with 3 additions and 5 deletions
|
|
@ -293,8 +293,10 @@ protected:
|
|||
// on it.
|
||||
#ifdef wxLongLong_t
|
||||
typedef wxLongLong_t LongestValueType;
|
||||
typedef wxULongLong_t ULongestValueType;
|
||||
#else
|
||||
typedef long LongestValueType;
|
||||
typedef unsigned long ULongestValueType;
|
||||
#endif
|
||||
|
||||
wxIntegerValidatorBase(int style)
|
||||
|
|
|
|||
|
|
@ -244,11 +244,7 @@ wxIntegerValidatorBase::FromString(const wxString& s,
|
|||
else
|
||||
{
|
||||
// Parse as unsigned to ensure we don't accept minus sign here.
|
||||
#ifdef wxULongLong_t
|
||||
wxULongLong_t uvalue;
|
||||
#else
|
||||
unsigned long uvalue;
|
||||
#endif
|
||||
ULongestValueType uvalue;
|
||||
if ( !wxNumberFormatter::FromString(s, &uvalue) )
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue