From 528eec68d30a5ab2b47364fa473f75150f4fa072 Mon Sep 17 00:00:00 2001 From: jkriege2 Date: Sat, 20 Aug 2022 16:26:07 +0200 Subject: [PATCH] fixed non-existend std::make_unique() --- lib/jkqtmathtext/jkqtmathtext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jkqtmathtext/jkqtmathtext.h b/lib/jkqtmathtext/jkqtmathtext.h index e0b3f39bee..daf012f20c 100644 --- a/lib/jkqtmathtext/jkqtmathtext.h +++ b/lib/jkqtmathtext/jkqtmathtext.h @@ -268,7 +268,7 @@ class JKQTMATHTEXT_LIB_EXPORT JKQTMathText : public QObject { template inline bool parse(const QString &markup, ParseOptions options=DefaultParseOptions) { static_assert(std::is_base_of::value, "in parse() the type TParser has to be derived from JKQTMathTextParser to work!"); - std::unique_ptr p=std::make_unique(this); + std::unique_ptr p=std::unique_ptr(new TParser(this)); if (parsedNode) delete parsedNode; parsedNode=nullptr; clearErrorList();