diff --git a/runtime/Cpp/runtime/src/TokenStreamRewriter.cpp b/runtime/Cpp/runtime/src/TokenStreamRewriter.cpp index 9afe2030b..358746ab0 100755 --- a/runtime/Cpp/runtime/src/TokenStreamRewriter.cpp +++ b/runtime/Cpp/runtime/src/TokenStreamRewriter.cpp @@ -203,11 +203,13 @@ void TokenStreamRewriter::Delete(Token *from, Token *to) { } void TokenStreamRewriter::Delete(const std::string &programName, size_t from, size_t to) { - replace(programName, from, to, nullptr); + std::string nullString; + replace(programName, from, to, nullString); } void TokenStreamRewriter::Delete(const std::string &programName, Token *from, Token *to) { - replace(programName, from, to, nullptr); + std::string nullString; + replace(programName, from, to, nullString); } size_t TokenStreamRewriter::getLastRewriteTokenIndex() {