summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-14 21:38:36 +0100
committerDavid Robillard <d@drobilla.net>2020-12-14 22:04:29 +0100
commitd0bc9bd3d51216c9555d866739bdbaeba166fb77 (patch)
tree01c668e786e88bfd18c25ceddce1f05f5184cba5
parent3669e06dd20d43d30bf89ac29e9055e0725b3564 (diff)
downloadingen-d0bc9bd3d51216c9555d866739bdbaeba166fb77.tar.gz
ingen-d0bc9bd3d51216c9555d866739bdbaeba166fb77.tar.bz2
ingen-d0bc9bd3d51216c9555d866739bdbaeba166fb77.zip
Use emplace_back()
-rw-r--r--.clang-tidy1
-rw-r--r--src/gui/ThreadedLoader.cpp4
2 files changed, 2 insertions, 3 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 2534cb2b..1ad90b8c 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -9,7 +9,6 @@ Checks: >
-*-non-private-member-variables-in-classes,
-*-special-member-functions,
-*-uppercase-literal-suffix,
- -*-use-emplace,
-abseil-string-find-str-contains,
-android-cloexec-fopen,
-bugprone-branch-clone,
diff --git a/src/gui/ThreadedLoader.cpp b/src/gui/ThreadedLoader.cpp
index edc1ad4c..1289d98c 100644
--- a/src/gui/ThreadedLoader.cpp
+++ b/src/gui/ThreadedLoader.cpp
@@ -89,7 +89,7 @@ ThreadedLoader::load_graph(bool merge,
}
}
- _events.push_back(sigc::hide_return(
+ _events.emplace_back(sigc::hide_return(
sigc::bind(sigc::mem_fun(this, &ThreadedLoader::load_graph_event),
file_path,
engine_parent,
@@ -122,7 +122,7 @@ ThreadedLoader::save_graph(
{
std::lock_guard<std::mutex> lock(_mutex);
- _events.push_back(sigc::hide_return(
+ _events.emplace_back(sigc::hide_return(
sigc::bind(sigc::mem_fun(this, &ThreadedLoader::save_graph_event),
model,
uri)));