mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-25 10:01:38 +08:00
fixed non-existend std::make_unique()
This commit is contained in:
parent
6273e469cd
commit
528eec68d3
@ -268,7 +268,7 @@ class JKQTMATHTEXT_LIB_EXPORT JKQTMathText : public QObject {
|
||||
template <class TParser>
|
||||
inline bool parse(const QString &markup, ParseOptions options=DefaultParseOptions) {
|
||||
static_assert(std::is_base_of<JKQTMathTextParser, TParser>::value, "in parse<TParser>() the type TParser has to be derived from JKQTMathTextParser to work!");
|
||||
std::unique_ptr<TParser> p=std::make_unique<TParser>(this);
|
||||
std::unique_ptr<TParser> p=std::unique_ptr<TParser>(new TParser(this));
|
||||
if (parsedNode) delete parsedNode;
|
||||
parsedNode=nullptr;
|
||||
clearErrorList();
|
||||
|
Loading…
Reference in New Issue
Block a user