Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 31, 2007, 12:06:33 AM (16 years ago)
Author:
landauf
Message:

updated to the newest tinyXML library and changed one line in the LevelLoader

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/tinyxml/tinystr.h

    r471 r738  
    4343#include <string.h>
    4444
     45/*      The support for explicit isn't that universal, and it isn't really
     46        required - it is used to check that the TiXmlString class isn't incorrectly
     47        used. Be nice to old compilers and macro it here:
     48*/
     49#if defined(_MSC_VER) && (_MSC_VER >= 1200 )
     50        // Microsoft visual studio, version 6 and higher.
     51        #define TIXML_EXPLICIT explicit
     52#elif defined(__GNUC__) && (__GNUC__ >= 3 )
     53        // GCC version 3 and higher.s
     54        #define TIXML_EXPLICIT explicit
     55#else
     56        #define TIXML_EXPLICIT
     57#endif
     58
     59
    4560/*
    4661   TiXmlString is an emulation of a subset of the std::string template.
     
    5469  public :
    5570        // The size type used
    56         typedef unsigned int size_type;
     71        typedef size_t size_type;
    5772
    5873        // Error value for find primitive
     
    6681
    6782        // TiXmlString copy constructor
    68         TiXmlString (const TiXmlString & copy)
     83        TiXmlString ( const TiXmlString & copy) : rep_(0)
    6984        {
    7085                init(copy.length());
     
    7388
    7489        // TiXmlString constructor, based on a string
    75         TiXmlString (const char * copy)
     90        TIXML_EXPLICIT TiXmlString ( const char * copy) : rep_(0)
    7691        {
    7792                init( static_cast<size_type>( strlen(copy) ));
     
    8095
    8196        // TiXmlString constructor, based on a string
    82         TiXmlString (const char * str, size_type len)
     97        TIXML_EXPLICIT TiXmlString ( const char * str, size_type len) : rep_(0)
    8398        {
    8499                init(len);
Note: See TracChangeset for help on using the changeset viewer.