Skip to content

Commit 039652e

Browse files
committed
Clean up code
1 parent 2cfd1eb commit 039652e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ui/remoteprocess.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,12 @@ void RemoteProcessSettingsDialog::apply()
107107
data = new Metadata(port);
108108
m_controller->GetData()->StoreMetadata("debugger.remote_port", data);
109109

110-
const auto platform = m_pluginEntry->currentText().toStdString();
111-
if (!platform.empty())
110+
const auto plugin = m_pluginEntry->currentText().toStdString();
111+
if (!plugin.empty())
112112
{
113-
m_controller->SetAdapterProperty("current_process_plugin", new Metadata(platform));
114-
m_controller->GetData()->StoreMetadata("debugger.process_plugin", new Metadata(platform));
113+
Ref<Metadata> pluginMetadata = new Metadata(plugin);
114+
m_controller->SetAdapterProperty("current_process_plugin", pluginMetadata);
115+
m_controller->GetData()->StoreMetadata("debugger.process_plugin", pluginMetadata);
115116
}
116117

117118
accept();

0 commit comments

Comments
 (0)