Ignore:
Timestamp:
08/18/14 10:03:36 (5 years ago)
Author:
jls17
Message:
  • moved ARZeroMemory function to Memory.cpp/.h
  • added new ARZeroMemory function which has a size parameter to replace ZeroMemory? (which is only available on windows)
  • replaced all ZeroMemory? calls with ARZeroMemory
  • fixed some gcc compiler warnings
  • now ARQualification throws AppException? instead of exception, because in the standard implementation there is no constructor to pass a message to exception class (this MSVC specific)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/work_311/lists/ARVUIList.cpp

    r549 r610  
    226226{ 
    227227        ids.internalIdList = new ARInternalId[amount]; 
    228         ZeroMemory(ids.internalIdList, sizeof(ARInternalId) * amount); 
     228        ARZeroMemory(ids.internalIdList, sizeof(ARInternalId) * amount); 
    229229 
    230230        names.nameList = new ARNameType[amount]; 
    231         ZeroMemory(names.nameList, sizeof(ARNameType) * amount); 
     231        ARZeroMemory(names.nameList, sizeof(ARNameType) * amount); 
    232232 
    233233        locales.localeList = new ARLocaleType[amount]; 
    234         ZeroMemory(locales.localeList, sizeof(ARLocaleType) * amount); 
     234        ARZeroMemory(locales.localeList, sizeof(ARLocaleType) * amount); 
    235235 
    236236        types.intList = new unsigned int[amount]; 
    237         ZeroMemory(types.intList, sizeof(unsigned int) * amount); 
     237        ARZeroMemory(types.intList, sizeof(unsigned int) * amount); 
    238238 
    239239        dispProps.propsList = new ARPropList[amount]; 
    240         ZeroMemory(dispProps.propsList, sizeof(ARPropList) * amount); 
     240        ARZeroMemory(dispProps.propsList, sizeof(ARPropList) * amount); 
    241241         
    242242        helpTexts.stringList = new char*[amount]; 
    243         ZeroMemory(helpTexts.stringList, sizeof(char*) * amount); 
     243        ARZeroMemory(helpTexts.stringList, sizeof(char*) * amount); 
    244244 
    245245        changedTimes.timestampList = new ARTimestamp[amount]; 
    246         ZeroMemory(changedTimes.timestampList, sizeof(ARTimestamp) * amount); 
     246        ARZeroMemory(changedTimes.timestampList, sizeof(ARTimestamp) * amount); 
    247247         
    248248        owners.nameList = new ARAccessNameType[amount]; 
    249         ZeroMemory(owners.nameList, sizeof(ARAccessNameType) * amount); 
     249        ARZeroMemory(owners.nameList, sizeof(ARAccessNameType) * amount); 
    250250         
    251251        changedUsers.nameList = new ARAccessNameType[amount]; 
    252         ZeroMemory(changedUsers.nameList, sizeof(ARAccessNameType) * amount); 
     252        ARZeroMemory(changedUsers.nameList, sizeof(ARAccessNameType) * amount); 
    253253         
    254254        changeDiary.stringList = new char*[amount]; 
    255         ZeroMemory(changeDiary.stringList, sizeof(char*) * amount); 
     255        ARZeroMemory(changeDiary.stringList, sizeof(char*) * amount); 
    256256 
    257257#if AR_CURRENT_API_VERSION >= AR_API_VERSION_763 
    258258        objProps.propsList = new ARPropList[amount]; 
    259         ZeroMemory(objProps.propsList, sizeof(ARPropList) * amount); 
     259        ARZeroMemory(objProps.propsList, sizeof(ARPropList) * amount); 
    260260#endif 
    261261} 
Note: See TracChangeset for help on using the changeset viewer.