[Cmake-commits] [cmake-commits] hoffman committed RegularExpression.cxx 1.10.70.1 1.10.70.2
cmake-commits at cmake.org
cmake-commits at cmake.org
Sun Jul 13 17:55:29 EDT 2008
Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv32502/Source/kwsys
Modified Files:
Tag: CMake-2-6
RegularExpression.cxx
Log Message:
ENH: Merge from head create RC7
Index: RegularExpression.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/RegularExpression.cxx,v
retrieving revision 1.10.70.1
retrieving revision 1.10.70.2
diff -C 2 -d -r1.10.70.1 -r1.10.70.2
*** RegularExpression.cxx 23 May 2008 20:09:44 -0000 1.10.70.1
--- RegularExpression.cxx 13 Jul 2008 21:55:25 -0000 1.10.70.2
***************
*** 78,81 ****
--- 78,85 ----
RegularExpression& RegularExpression::operator= (const RegularExpression& rxp)
{
+ if(this == &rxp)
+ {
+ return *this;
+ }
if ( !rxp.program )
{
***************
*** 85,88 ****
--- 89,93 ----
int ind;
this->progsize = rxp.progsize; // Copy regular expression size
+ delete [] this->program;
this->program = new char[this->progsize]; // Allocate storage
for(ind=this->progsize; ind-- != 0;) // Copy regular expresion
More information about the Cmake-commits
mailing list