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.
This commit is contained in:
parent
67671ac400
commit
81601796a6
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue