summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.clang-tidy1
-rw-r--r--ingen/filesystem.hpp4
-rw-r--r--src/client/PluginModel.cpp2
-rw-r--r--src/server/SocketListener.cpp2
-rw-r--r--tests/ingen_bench.cpp2
5 files changed, 5 insertions, 6 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 65678a11..badd2fd1 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -67,7 +67,6 @@ Checks: >
-modernize-use-default-member-init,
-modernize-use-trailing-return-type,
-modernize-use-using,
- -performance-no-automatic-move,
-performance-unnecessary-value-param,
-portability-simd-intrinsics,
-readability-avoid-const-params-in-decls,
diff --git a/ingen/filesystem.hpp b/ingen/filesystem.hpp
index 5156eb79..3b2bc302 100644
--- a/ingen/filesystem.hpp
+++ b/ingen/filesystem.hpp
@@ -75,8 +75,8 @@ inline FilePath current_path()
struct Freer { void operator()(char* const ptr) { free(ptr); } };
std::unique_ptr<char, Freer> cpath(realpath(".", nullptr));
- const FilePath path(cpath.get());
- return path;
+
+ return FilePath(cpath.get());
}
} // namespace filesystem
diff --git a/src/client/PluginModel.cpp b/src/client/PluginModel.cpp
index 517bed70..6c6b9748 100644
--- a/src/client/PluginModel.cpp
+++ b/src/client/PluginModel.cpp
@@ -204,7 +204,7 @@ PluginModel::port_human_name(uint32_t i) const
if (_lilv_plugin) {
const LilvPort* port = lilv_plugin_get_port_by_index(_lilv_plugin, i);
LilvNode* name = lilv_port_get_name(_lilv_plugin, port);
- const string ret(lilv_node_as_string(name));
+ string ret(lilv_node_as_string(name));
lilv_node_free(name);
return ret;
}
diff --git a/src/server/SocketListener.cpp b/src/server/SocketListener.cpp
index 08a719fd..272aa627 100644
--- a/src/server/SocketListener.cpp
+++ b/src/server/SocketListener.cpp
@@ -54,7 +54,7 @@ get_link_target(const char* link_path)
// Allocate buffer and read link target
char* target = static_cast<char*>(calloc(1, link_stat.st_size + 1));
if (readlink(link_path, target, link_stat.st_size) != -1) {
- const std::string result(target);
+ std::string result(target);
free(target);
return result;
}
diff --git a/tests/ingen_bench.cpp b/tests/ingen_bench.cpp
index 2741e5d6..49a52d54 100644
--- a/tests/ingen_bench.cpp
+++ b/tests/ingen_bench.cpp
@@ -51,7 +51,7 @@ static std::string
real_path(const char* path)
{
char* const c_real_path = realpath(path, nullptr);
- const std::string result(c_real_path ? c_real_path : "");
+ std::string result(c_real_path ? c_real_path : "");
free(c_real_path);
return result;
}