Changed FrontendActionFactory::create to return a std::unique_ptr
[lldb.git] / clang / tools / clang-refactor / ClangRefactor.cpp
index 2a9d6ff..8b44c7f 100644 (file)
@@ -461,7 +461,9 @@ public:
       ToolActionFactory(TUCallbackType Callback)
           : Callback(std::move(Callback)) {}
 
-      FrontendAction *create() override { return new ToolASTAction(Callback); }
+      std::unique_ptr<FrontendAction> create() override {
+        return std::make_unique<ToolASTAction>(Callback);
+      }
 
     private:
       TUCallbackType Callback;