mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-29 03:38:05 -06:00
Use helper functions to construct smart pointers
This commit is contained in:
@@ -457,7 +457,7 @@ void SearchPluginManager::update()
|
||||
if (!engineElem.isNull()) {
|
||||
const QString pluginName = engineElem.tagName();
|
||||
|
||||
std::unique_ptr<PluginInfo> plugin {new PluginInfo {}};
|
||||
auto plugin = std::make_unique<PluginInfo>();
|
||||
plugin->name = pluginName;
|
||||
plugin->version = getPluginVersion(pluginPath(pluginName));
|
||||
plugin->fullName = engineElem.elementsByTagName("name").at(0).toElement().text();
|
||||
|
||||
Reference in New Issue
Block a user