Use in wxPG classes wxMilliClock_t variables to store values returned by wxGetLocalTimeMillis() function.

wxMilliClock_t is always mapped to the proper base type and hence can be used even if wxLongLong type is not defined (when wxUSE_LONGLONG is disabled).
This commit is contained in:
Artur Wieczorek
2015-04-03 21:10:04 +02:00
parent 6a7b95f419
commit cc575a7a89
4 changed files with 7 additions and 7 deletions

View File

@@ -392,7 +392,7 @@ void wxPropertyGridPageState::OnClientWidthChange( int newWidth, int widthChange
if ( !m_isSplitterPreSet && m_dontCenterSplitter )
{
long timeSinceCreation = (::wxGetLocalTimeMillis() - GetGrid()->m_timeCreated).ToLong();
wxMilliClock_t timeSinceCreation = ::wxGetLocalTimeMillis() - GetGrid()->m_timeCreated;
// If too long, don't set splitter
if ( timeSinceCreation < 250 )