Merge pull request #51 from StephanOostveen/bug/return_local_reference

Bug: JKMathParser exception return local variable
This commit is contained in:
Jan W. Krieger 2021-10-18 14:16:27 +02:00 committed by GitHub
commit 2d12671501
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1889,7 +1889,7 @@ std::string JKQTPMathParser::jkmpException::getMessage() const {
}
const char *JKQTPMathParser::jkmpException::what() const noexcept {
return getMessage().c_str();
return errormessage.c_str();
}
JKQTPMathParser *JKQTPMathParser::jkmpNode::getParser(){ return parser; }