Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 23, 2009, 8:53:51 PM (15 years ago)
Author:
scheusso
Message:

some cleaning up and memory leak fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/netp6/src/util/Serialise.h

    r3084 r3227  
    408408    template <> inline void loadAndIncrease( const std::string& variable, uint8_t*& mem )
    409409    {
    410         *(std::string*)( &variable ) = std::string((const char *)mem);
     410        *(std::string*)( &variable ) = (const char *)mem;
    411411        mem += variable.length()+1;
    412412    }
     
    414414    template <> inline bool checkEquality( const std::string& variable, uint8_t* mem )
    415415    {
    416         return std::string((const char*)mem)==variable;
     416        //return std::string((const char*)mem)==variable;
     417        return (const char*)mem==variable;
    417418    }
    418419
Note: See TracChangeset for help on using the changeset viewer.