Use long int literals to represent long constants
This commit is contained in:
parent
1943a9f38d
commit
a93713f7f8
@ -400,16 +400,16 @@ enum wxPG_SETVALUE_FLAGS
|
||||
//
|
||||
// Valid constants for wxPG_UINT_BASE attribute
|
||||
// (long because of wxVariant constructor)
|
||||
#define wxPG_BASE_OCT (long)8
|
||||
#define wxPG_BASE_DEC (long)10
|
||||
#define wxPG_BASE_HEX (long)16
|
||||
#define wxPG_BASE_HEXL (long)32
|
||||
#define wxPG_BASE_OCT 8L
|
||||
#define wxPG_BASE_DEC 10L
|
||||
#define wxPG_BASE_HEX 16L
|
||||
#define wxPG_BASE_HEXL 32L
|
||||
|
||||
//
|
||||
// Valid constants for wxPG_UINT_PREFIX attribute
|
||||
#define wxPG_PREFIX_NONE (long)0
|
||||
#define wxPG_PREFIX_0x (long)1
|
||||
#define wxPG_PREFIX_DOLLAR_SIGN (long)2
|
||||
#define wxPG_PREFIX_NONE 0L
|
||||
#define wxPG_PREFIX_0x 1L
|
||||
#define wxPG_PREFIX_DOLLAR_SIGN 2L
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
// Editor class.
|
||||
|
@ -182,17 +182,18 @@ enum wxPG_SETVALUE_FLAGS
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
//
|
||||
// Valid constants for wxPG_UINT_BASE attribute
|
||||
// (long because of wxVariant constructor)
|
||||
#define wxPG_BASE_OCT (long)8
|
||||
#define wxPG_BASE_DEC (long)10
|
||||
#define wxPG_BASE_HEX (long)16
|
||||
#define wxPG_BASE_HEXL (long)32
|
||||
/** Valid constants for ::wxPG_UINT_BASE attribute
|
||||
(@c long because of wxVariant constructor)
|
||||
*/
|
||||
#define wxPG_BASE_OCT 8L
|
||||
#define wxPG_BASE_DEC 10L
|
||||
#define wxPG_BASE_HEX 16L
|
||||
#define wxPG_BASE_HEXL 32L
|
||||
|
||||
//
|
||||
// Valid constants for wxPG_UINT_PREFIX attribute
|
||||
#define wxPG_PREFIX_NONE (long)0
|
||||
#define wxPG_PREFIX_0x (long)1
|
||||
#define wxPG_PREFIX_DOLLAR_SIGN (long)2
|
||||
/** Valid constants for ::wxPG_UINT_PREFIX attribute
|
||||
*/
|
||||
#define wxPG_PREFIX_NONE 0L
|
||||
#define wxPG_PREFIX_0x 1L
|
||||
#define wxPG_PREFIX_DOLLAR_SIGN 2L
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
@ -185,8 +185,8 @@ wxPGGlobalVarsClass* wxPGGlobalVars = NULL;
|
||||
wxPGGlobalVarsClass::wxPGGlobalVarsClass()
|
||||
// Prepare some shared variants
|
||||
: m_vEmptyString(wxString())
|
||||
, m_vZero((long)0)
|
||||
, m_vMinusOne((long)-1)
|
||||
, m_vZero(0L)
|
||||
, m_vMinusOne(-1L)
|
||||
, m_vTrue(true)
|
||||
, m_vFalse(false)
|
||||
// Prepare cached string constants
|
||||
|
Loading…
Reference in New Issue
Block a user