diff options
Diffstat (limited to 'Src/Util.cpp')
| -rw-r--r-- | Src/Util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Util.cpp b/Src/Util.cpp index c084018..9965098 100644 --- a/Src/Util.cpp +++ b/Src/Util.cpp @@ -7,7 +7,7 @@ std::string Util::ConditionalReplaceButKeepSigns( const std::string& str, std::string find, const std::string& sub, - const std::function<bool(const std::string&, const std::size_t)>& onlyIf + const std::function<bool(const std::string&, const std::string&, const std::size_t)>& onlyIf ) { @@ -29,7 +29,7 @@ std::string Util::ConditionalReplaceButKeepSigns( if (foundInText_lower == find) { // Ask the callback if we should replace this one - if (onlyIf(foundInText, i)) + if (onlyIf(str, foundInText, i)) { // Here we've found our occurrence... // We have three possible cases: |
