From 60e87889d6438e386acf58c3967fb874af9aae82 Mon Sep 17 00:00:00 2001 From: mitchell Date: Sun, 5 Jan 2020 21:22:02 -0500 Subject: Added Sci::make_unique() and Sci::size() for better compatibility with the default branch. std::make_unique() is c++14 and std::size() is c++17. --- src/ViewStyle.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ViewStyle.cxx') diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index ec6d8e52c..6ec980af4 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -582,7 +582,7 @@ void ViewStyle::CreateAndAddFont(const FontSpecification &fs) { if (fs.fontName) { FontMap::iterator it = fonts.find(fs); if (it == fonts.end()) { - fonts[fs] = std::unique_ptr(new FontRealised()); + fonts[fs] = Sci::make_unique(); } } } -- cgit v1.2.3