X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e38fd1fb0d8c4508383f3d9ce2f3ae0c6d39cfd..121fa06ab6af9129e776af13949fc251a3cafc49:/src/common/longlong.cpp diff --git a/src/common/longlong.cpp b/src/common/longlong.cpp index 90dd05b8e4..ba2c4100fb 100644 --- a/src/common/longlong.cpp +++ b/src/common/longlong.cpp @@ -2,20 +2,20 @@ // Name: wx/longlong.cpp // Purpose: implementation of wxLongLongNative // Author: Jeffrey C. Ollie , Vadim Zeitlin -// Remarks: this class is not public in wxWindows 2.0! It is intentionally +// Remarks: this class is not public in wxWidgets 2.0! It is intentionally // not documented and is for private use only. // Modified by: // Created: 10.02.99 // RCS-ID: $Id$ // Copyright: (c) 1998 Vadim Zeitlin -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // ============================================================================ // headers // ============================================================================ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "longlong.h" #endif @@ -508,41 +508,41 @@ wxULongLongWx& wxULongLongWx::operator--() bool wxLongLongWx::operator<(const wxLongLongWx& ll) const { if ( m_hi < ll.m_hi ) - return TRUE; + return true; else if ( m_hi == ll.m_hi ) return m_lo < ll.m_lo; else - return FALSE; + return false; } bool wxULongLongWx::operator<(const wxULongLongWx& ll) const { if ( m_hi < ll.m_hi ) - return TRUE; + return true; else if ( m_hi == ll.m_hi ) return m_lo < ll.m_lo; else - return FALSE; + return false; } bool wxLongLongWx::operator>(const wxLongLongWx& ll) const { if ( m_hi > ll.m_hi ) - return TRUE; + return true; else if ( m_hi == ll.m_hi ) return m_lo > ll.m_lo; else - return FALSE; + return false; } bool wxULongLongWx::operator>(const wxULongLongWx& ll) const { if ( m_hi > ll.m_hi ) - return TRUE; + return true; else if ( m_hi == ll.m_hi ) return m_lo > ll.m_lo; else - return FALSE; + return false; } // bitwise operators @@ -796,7 +796,7 @@ void wxLongLongWx::Divide(const wxLongLongWx& divisorIn, // // with 0 <= abs(remainder) < abs(divisor) bool negRemainder = dividend.m_hi < 0; - bool negQuotient = FALSE; // assume positive + bool negQuotient = false; // assume positive if ( dividend.m_hi < 0 ) { negQuotient = !negQuotient; @@ -996,7 +996,7 @@ wxLongLongWx& wxLongLongWx::operator/=(const wxLongLongWx& ll) wxULongLongWx& wxULongLongWx::operator/=(const wxULongLongWx& ll) { - wxLongLongWx quotient, remainder; + wxULongLongWx quotient, remainder; Divide(ll, quotient, remainder); @@ -1078,11 +1078,11 @@ wxLongLongWx::ToString() const if ( ll < 0 ) { ll.Negate(); - neg = TRUE; + neg = true; } else { - neg = FALSE; + neg = false; } while ( ll != 0 ) @@ -1113,7 +1113,7 @@ wxULongLongWx::ToString() const while ( ll != 0 ) { - result.Prepend((wxChar)(_T('0') + (ll % 10).ToLong())); + result.Prepend((wxChar)(_T('0') + (ll % 10).ToULong())); ll /= 10; }