File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ PluginRegistry::loadLibraryPlugin(StringRef path) {
67
67
}
68
68
#endif
69
69
70
- storage = std::unique_ptr <LoadedLibraryPlugin>(new LoadedLibraryPlugin ( lib) );
70
+ storage = std::make_unique <LoadedLibraryPlugin>(lib);
71
71
return storage.get ();
72
72
}
73
73
@@ -111,8 +111,8 @@ PluginRegistry::loadExecutablePlugin(StringRef path) {
111
111
" not executable" );
112
112
}
113
113
114
- auto plugin = std::unique_ptr <LoadedExecutablePlugin>(
115
- new LoadedExecutablePlugin ( path, stat.getLastModificationTime () ));
114
+ auto plugin = std::make_unique <LoadedExecutablePlugin>(
115
+ path, stat.getLastModificationTime ());
116
116
117
117
plugin->setDumpMessaging (dumpMessaging);
118
118
@@ -153,9 +153,9 @@ llvm::Error LoadedExecutablePlugin::spawnIfNeeded() {
153
153
return llvm::errorCodeToError (childInfo.getError ());
154
154
}
155
155
156
- Process = std::unique_ptr <PluginProcess>(
157
- new PluginProcess (childInfo-> Pid , childInfo->ReadFileDescriptor ,
158
- childInfo->WriteFileDescriptor ) );
156
+ Process = std::make_unique <PluginProcess>(childInfo-> Pid ,
157
+ childInfo->ReadFileDescriptor ,
158
+ childInfo->WriteFileDescriptor );
159
159
160
160
// Call "on reconnect" callbacks.
161
161
for (auto *callback : onReconnect) {
You can’t perform that action at this time.
0 commit comments