COMP: Using the proper type for local variables can eliminate compiler warnings.
This commit is contained in:
parent
ceaef94ccc
commit
306d517e82
|
@ -1612,7 +1612,7 @@ void cmSystemTools::RestoreEnv(const std::vector<std::string>& env)
|
||||||
{
|
{
|
||||||
std::string var(*eit);
|
std::string var(*eit);
|
||||||
|
|
||||||
int pos = var.find("=");
|
std::string::size_type pos = var.find("=");
|
||||||
if (pos != std::string::npos)
|
if (pos != std::string::npos)
|
||||||
{
|
{
|
||||||
var = var.substr(0, pos);
|
var = var.substr(0, pos);
|
||||||
|
|
Loading…
Reference in New Issue