From b0dbb8477bfd3010a2139ae2a7e0c89b3758721a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 1 Aug 2020 21:50:09 +0200 Subject: Remove redundant const qualifiers --- .clang-tidy | 2 -- ingen/Configuration.hpp | 2 +- ingen/Library.hpp | 2 +- ingen/URIMap.hpp | 2 +- ingen/client/PluginModel.hpp | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index f59375f4..24a6cb7f 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -52,8 +52,6 @@ Checks: > -misc-unused-parameters, -modernize-use-trailing-return-type, -portability-simd-intrinsics, - -readability-avoid-const-params-in-decls, - -readability-const-return-type, -readability-else-after-return, -readability-implicit-bool-conversion, -readability-named-parameter, diff --git a/ingen/Configuration.hpp b/ingen/Configuration.hpp index 6c0343b1..4b290316 100644 --- a/ingen/Configuration.hpp +++ b/ingen/Configuration.hpp @@ -66,7 +66,7 @@ public: char letter, const std::string& desc, Scope scope, - const LV2_URID type, + LV2_URID type, const Atom& value); void print_usage(const std::string& program, std::ostream& os); diff --git a/ingen/Library.hpp b/ingen/Library.hpp index bc6525cf..fd4f4260 100644 --- a/ingen/Library.hpp +++ b/ingen/Library.hpp @@ -33,7 +33,7 @@ public: using VoidFuncPtr = void (*)(); - VoidFuncPtr get_function(const char* const name); + VoidFuncPtr get_function(const char* name); static const char* get_last_error(); diff --git a/ingen/URIMap.hpp b/ingen/URIMap.hpp index 5b211612..7efef8d1 100644 --- a/ingen/URIMap.hpp +++ b/ingen/URIMap.hpp @@ -71,7 +71,7 @@ public: struct URIDUnmapFeature : public Feature { URIDUnmapFeature(URIMap* map, LV2_URID_Unmap* impl); - const char* unmap(const LV2_URID urid) const; + const char* unmap(LV2_URID urid) const; static const char* default_unmap(LV2_URID_Map_Handle h, LV2_URID urid); LV2_URID_Unmap urid_unmap; }; diff --git a/ingen/client/PluginModel.hpp b/ingen/client/PluginModel.hpp index 10ab3a6a..dbefaf95 100644 --- a/ingen/client/PluginModel.hpp +++ b/ingen/client/PluginModel.hpp @@ -55,7 +55,7 @@ public: const Atom& type() const { return _type; } - const URI type_uri() const + URI type_uri() const { return URI(_type.is_valid() ? _uris.forge.str(_type, false) : "http://www.w3.org/2002/07/owl#Nothing"); -- cgit v1.2.1