summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/ClientStore.cpp2
-rw-r--r--src/client/GraphModel.cpp3
-rw-r--r--src/client/PluginModel.cpp2
3 files changed, 3 insertions, 4 deletions
diff --git a/src/client/ClientStore.cpp b/src/client/ClientStore.cpp
index 356a6b31..706b2c5b 100644
--- a/src/client/ClientStore.cpp
+++ b/src/client/ClientStore.cpp
@@ -189,7 +189,7 @@ ClientStore::add_plugin(SPtr<PluginModel> pm)
if (existing) {
existing->set(pm);
} else {
- _plugins->insert(make_pair(pm->uri(), pm));
+ _plugins->emplace(pm->uri(), pm);
_signal_new_plugin.emit(pm);
}
}
diff --git a/src/client/GraphModel.cpp b/src/client/GraphModel.cpp
index b5838d19..0723e59b 100644
--- a/src/client/GraphModel.cpp
+++ b/src/client/GraphModel.cpp
@@ -134,8 +134,7 @@ GraphModel::add_arc(SPtr<ArcModel> arc)
assert(arc->tail() == existing->tail());
assert(arc->head() == existing->head());
} else {
- _arcs.emplace(std::make_pair(arc->tail().get(),
- arc->head().get()),
+ _arcs.emplace(std::make_pair(arc->tail().get(), arc->head().get()),
arc);
_signal_new_arc.emit(arc);
}
diff --git a/src/client/PluginModel.cpp b/src/client/PluginModel.cpp
index e8bdf12a..2ab4ccae 100644
--- a/src/client/PluginModel.cpp
+++ b/src/client/PluginModel.cpp
@@ -172,7 +172,7 @@ PluginModel::set(SPtr<PluginModel> p)
void
PluginModel::add_preset(const Raul::URI& uri, const std::string& label)
{
- _presets.insert(std::make_pair(uri, label));
+ _presets.emplace(uri, label);
_signal_preset.emit(uri, label);
}