From ec05778d5718a7912e506764d443a78d6a6179e3 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 5 Nov 2012 22:41:51 +0000 Subject: Converted tabs to spaces with tabconv. --- src/stable/util.cpp | 86 ++++++++++++++++++++++++++--------------------------- 1 file changed, 43 insertions(+), 43 deletions(-) (limited to 'src/stable/util.cpp') diff --git a/src/stable/util.cpp b/src/stable/util.cpp index b42e040..ff9901b 100644 --- a/src/stable/util.cpp +++ b/src/stable/util.cpp @@ -9,57 +9,57 @@ int Bu::getDaysInMonth( int iMonth, int iYear ) { - if( iMonth > 11 ) - { - iYear += iMonth/12; - iMonth = iMonth%12; - } - switch( iMonth ) - { - case 0: - case 2: - case 4: - case 6: - case 7: - case 9: - case 11: - return 31; - break; + if( iMonth > 11 ) + { + iYear += iMonth/12; + iMonth = iMonth%12; + } + switch( iMonth ) + { + case 0: + case 2: + case 4: + case 6: + case 7: + case 9: + case 11: + return 31; + break; - case 3: - case 5: - case 8: - case 10: - return 30; - break; + case 3: + case 5: + case 8: + case 10: + return 30; + break; - case 1: - if( iYear%400 == 0 ) - return 29; - if( iYear%100 == 0 ) - return 28; - if( iYear%4 == 0 ) - return 29; - return 28; - break; + case 1: + if( iYear%400 == 0 ) + return 29; + if( iYear%100 == 0 ) + return 28; + if( iYear%4 == 0 ) + return 29; + return 28; + break; - default: - return -1; - } + default: + return -1; + } } void Bu::memcpy( void *pDest, const void *pSrc, size_t iBytes ) { #ifdef VALTEST - const char *src = (const char *)pSrc; - char *dest = (char *)pDest; - for( int j = 0; j < count; j++ ) - { - *dest = *src; - dest++; - src++; - } + const char *src = (const char *)pSrc; + char *dest = (char *)pDest; + for( int j = 0; j < count; j++ ) + { + *dest = *src; + dest++; + src++; + } #else - ::memcpy( pDest, pSrc, iBytes ); + ::memcpy( pDest, pSrc, iBytes ); #endif } -- cgit v1.2.3