diff options
| author | Neil <nyamatongwe@gmail.com> | 2019-03-25 13:44:27 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2019-03-25 13:44:27 +1100 |
| commit | b76c680810428da074503837989e40687c2ddedf (patch) | |
| tree | bcfdd4ef8f823e510f46f2ccd7a775ca6aff4cad | |
| parent | b2a9562d5b76db78d5c124821ce724e342b35369 (diff) | |
| download | scintilla-mirror-b76c680810428da074503837989e40687c2ddedf.tar.gz | |
Use std::make_unique.
| -rw-r--r-- | gtk/ScintillaGTK.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 29cf5d3ac..c6ad82a96 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -1483,7 +1483,7 @@ void ScintillaGTK::GetSelection(GtkSelectionData *selection_data, guint info, Se const char *charSet = ::CharacterSetID(text->characterSet); if (*charSet) { std::string tmputf = ConvertText(text->Data(), text->Length(), "UTF-8", charSet, false); - converted.reset(new SelectionText()); + converted = std::make_unique<SelectionText>(); converted->Copy(tmputf, SC_CP_UTF8, 0, text->rectangular, false); text = converted.get(); } |
