Use make_intrusive/make_shared for smart pointer construction.

This commit is contained in:
Twan van Laarhoven
2020-04-23 23:51:34 +02:00
parent 815df01ba5
commit 708b4389a0
67 changed files with 313 additions and 329 deletions
+1 -1
View File
@@ -1367,7 +1367,7 @@ void TextValueEditor::findWordLists() {
throw Error(_ERROR_1_("word list type not found", name));
}
// add to word_lists
word_lists.push_back(intrusive(new WordListPos(pos, end, word_list)));
word_lists.push_back(make_intrusive<WordListPos>(pos, end, word_list));
// next
pos = str.find(_("<word-list-"), end);
}