summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-02-19 14:09:46 (GMT)
committerBrad King <brad.king@kitware.com>2008-02-19 14:09:46 (GMT)
commita3c2d3280234fb5883f3e2ee0a3b980fe77f9b90 (patch)
treecffdd43d7871cb1caa1a5253f4b5962cc9e596c4 /Source/cmTarget.cxx
parent50f8edd10a3e8fc00f77f6f32acc3e7c5ebbb933 (diff)
downloadCMake-a3c2d3280234fb5883f3e2ee0a3b980fe77f9b90.zip
CMake-a3c2d3280234fb5883f3e2ee0a3b980fe77f9b90.tar.gz
CMake-a3c2d3280234fb5883f3e2ee0a3b980fe77f9b90.tar.bz2
COMP: Fix HP warning about cmTargetInternalPointer::operator= checking for self-assignment.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index d534a04..4e3a345 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -3459,8 +3459,9 @@ 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
// we can make a sweep to remove that, this copy constructor avoids
// allowing the resources (Internals) to be copied.