mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2025-02-03 11:09:20 +08:00
Bug: JKMathParser exception return local variable
Fix the what() function which returned a pointer to a local variable.
This commit is contained in:
parent
fc7622e901
commit
e7ca3db4de
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user