summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-02-06 14:08:02 (GMT)
committerBrad King <brad.king@kitware.com>2009-02-06 14:08:02 (GMT)
commit81601796a64807689e6d0af2bbd263b672e8434d (patch)
tree62df62bbd9e191cfdf5f4a57112c01586bfb8136 /Source
parent67671ac40014b214bf19f608097f57f3e9f53a74 (diff)
downloadCMake-81601796a64807689e6d0af2bbd263b672e8434d.zip
CMake-81601796a64807689e6d0af2bbd263b672e8434d.tar.gz
CMake-81601796a64807689e6d0af2bbd263b672e8434d.tar.bz2
COMP: Avoid parameter/member shadow in cmXMLSafe
A cmXMLSafe constructor named its parameter 'str' which shadowed the name of the 'str' method. This renames the parameter to avoid the conflict warning.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmXMLSafe.cxx6
-rw-r--r--Source/cmXMLSafe.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmXMLSafe.cxx b/Source/cmXMLSafe.cxx
index 21b6bc3..5cf93ca 100644
--- a/Source/cmXMLSafe.cxx
+++ b/Source/cmXMLSafe.cxx
@@ -31,9 +31,9 @@ cmXMLSafe::cmXMLSafe(const char* s):
}
//----------------------------------------------------------------------------
-cmXMLSafe::cmXMLSafe(cmsys_stl::string const& str):
- Data(str.c_str()),
- Size(static_cast<unsigned long>(str.length())),
+cmXMLSafe::cmXMLSafe(cmsys_stl::string const& s):
+ Data(s.c_str()),
+ Size(static_cast<unsigned long>(s.length())),
DoQuotes(true)
{
}
diff --git a/Source/cmXMLSafe.h b/Source/cmXMLSafe.h
index 6352ad6..062ac5c 100644
--- a/Source/cmXMLSafe.h
+++ b/Source/cmXMLSafe.h
@@ -29,7 +29,7 @@ public:
/** Construct with the data to be written. This assumes the data
will exist for the duration of this object's life. */
cmXMLSafe(const char* s);
- cmXMLSafe(cmsys_stl::string const& str);
+ cmXMLSafe(cmsys_stl::string const& s);
/** Specify whether to escape quotes too. This is needed when
writing the content of an attribute value. By default quotes