diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-12-02 21:35:04 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-12-02 21:35:04 (GMT) |
commit | 0123cb0f2c7d4b3266b1af8ddc2d1f80c72041f9 (patch) | |
tree | 4e2b591855d7742ef3e99b8009b57e65ff9bba9b /Source/cmStringCommand.cxx | |
parent | 952c2f2d644d24f1f0e1967c7121f38db3f7440b (diff) | |
download | CMake-0123cb0f2c7d4b3266b1af8ddc2d1f80c72041f9.zip CMake-0123cb0f2c7d4b3266b1af8ddc2d1f80c72041f9.tar.gz CMake-0123cb0f2c7d4b3266b1af8ddc2d1f80c72041f9.tar.bz2 |
fix compile warning
Diffstat (limited to 'Source/cmStringCommand.cxx')
-rw-r--r-- | Source/cmStringCommand.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmStringCommand.cxx b/Source/cmStringCommand.cxx index 2af4536..8278a85 100644 --- a/Source/cmStringCommand.cxx +++ b/Source/cmStringCommand.cxx @@ -250,14 +250,14 @@ bool cmStringCommand::RegexReplace(std::vector<std::string> const& args) std::string::size_type base = 0; while(re.find(input.c_str()+base)) { - std::string::size_type l = re.start(); + std::string::size_type l2 = re.start(); std::string::size_type r = re.end(); // Concatenate the part of the input that was not matched. - output += input.substr(base, l); + output += input.substr(base, l2); // Make sure the match had some text. - if(r-l == 0) + if(r-l2 == 0) { std::string e = "sub-command REGEX, mode REPLACE regex \""+regex+"\" matched an empty string."; this->SetError(e.c_str()); |