From 6af47b53d52c29474bfc551700f8394dbf1dbc04 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 18 Mar 2021 19:50:34 +1100 Subject: Use unique_ptr for CaseFolderForEncoding to show transfer of ownership. --- src/Editor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Editor.cxx') diff --git a/src/Editor.cxx b/src/Editor.cxx index 54336c19f..ab5c9c811 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4057,9 +4057,9 @@ public: }; -CaseFolder *Editor::CaseFolderForEncoding() { +std::unique_ptr Editor::CaseFolderForEncoding() { // Simple default that only maps ASCII upper case to lower case. - return new CaseFolderASCII(); + return std::make_unique(); } /** -- cgit v1.2.3