COMP: Fix HP warning about cmTargetInternalPointer::operator= checking for self-assignment.

This commit is contained in:
Brad King 2008-02-19 09:09:46 -05:00
parent 50f8edd10a
commit a3c2d32802
1 changed files with 2 additions and 1 deletions

View File

@ -3459,8 +3459,9 @@ cmTargetInternalPointer::~cmTargetInternalPointer()
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
cmTargetInternalPointer& cmTargetInternalPointer&
cmTargetInternalPointer::operator=(cmTargetInternalPointer const&) cmTargetInternalPointer::operator=(cmTargetInternalPointer const& r)
{ {
if(this == &r) { return *this; } // avoid warning on HP about self check
// Ideally cmTarget instances should never be copied. However until // Ideally cmTarget instances should never be copied. However until
// we can make a sweep to remove that, this copy constructor avoids // we can make a sweep to remove that, this copy constructor avoids
// allowing the resources (Internals) to be copied. // allowing the resources (Internals) to be copied.