aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-18 19:50:34 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-18 19:50:34 +1100
commit6af47b53d52c29474bfc551700f8394dbf1dbc04 (patch)
tree12306e8c4586c60ebcc64acac5018b570b69605f /src/Editor.cxx
parent402e089842d5aa2bb3774a665e26c42dc91fa5b4 (diff)
downloadscintilla-mirror-6af47b53d52c29474bfc551700f8394dbf1dbc04.tar.gz
Use unique_ptr for CaseFolderForEncoding to show transfer of ownership.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx4
1 files changed, 2 insertions, 2 deletions
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<CaseFolder> Editor::CaseFolderForEncoding() {
// Simple default that only maps ASCII upper case to lower case.
- return new CaseFolderASCII();
+ return std::make_unique<CaseFolderASCII>();
}
/**