[brlcad-commits] SF.net SVN: brlcad:[43468] geomcore/trunk/src/libNet/netMsg/NetMsg.cxx
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <eri...@us...> - 2011-02-25 20:56:59
|
Revision: 43468 http://brlcad.svn.sourceforge.net/brlcad/?rev=43468&view=rev Author: erikgreenwald Date: 2011-02-25 20:56:52 +0000 (Fri, 25 Feb 2011) Log Message: ----------- set reUUID to NULL in deserialize. Use hasReUUID instead of testing reUUIDsvn diff NetMsg.cxx=NULL in toString. Modified Paths: -------------- geomcore/trunk/src/libNet/netMsg/NetMsg.cxx Modified: geomcore/trunk/src/libNet/netMsg/NetMsg.cxx =================================================================== --- geomcore/trunk/src/libNet/netMsg/NetMsg.cxx 2011-02-25 20:47:41 UTC (rev 43467) +++ geomcore/trunk/src/libNet/netMsg/NetMsg.cxx 2011-02-25 20:56:52 UTC (rev 43468) @@ -61,6 +61,8 @@ this->hasReUUID = *(unsigned char*)ds->get(1); if (this->hasReUUID) this->reUUID = new GSUuid(ds->getString()); + else + this->reUUID = NULL; } /* Destructor */ @@ -173,7 +175,7 @@ snprintf(buf, BUFSIZ, "'\t hasReUUID: %d'", this->hasReUUID); out.append(buf); - if (this->reUUID != NULL) { + if (this->hasReUUID) { snprintf(buf, BUFSIZ, "'\t reUUID: %s'", this->reUUID->toString()->c_str()); out.append(buf); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |