[Cmake-commits] [cmake-commits] hoffman committed RegularExpression.cxx 1.12 1.13
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Jul 10 17:20:16 EDT 2008
Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv2863
Modified Files:
RegularExpression.cxx
Log Message:
COMP: remove warning and check for assignment to itself in operator=
Index: RegularExpression.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/RegularExpression.cxx,v
retrieving revision 1.12
retrieving revision 1.13
diff -C 2 -d -r1.12 -r1.13
*** RegularExpression.cxx 9 Jul 2008 15:46:03 -0000 1.12
--- RegularExpression.cxx 10 Jul 2008 21:20:14 -0000 1.13
***************
*** 78,81 ****
--- 78,85 ----
RegularExpression& RegularExpression::operator= (const RegularExpression& rxp)
{
+ if(this == &rxp)
+ {
+ return *this;
+ }
if ( !rxp.program )
{
More information about the Cmake-commits
mailing list