diff options
author | David Robillard <d@drobilla.net> | 2020-08-01 21:50:09 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-02 01:48:48 +0200 |
commit | b0dbb8477bfd3010a2139ae2a7e0c89b3758721a (patch) | |
tree | a45022baf8713d6a0cbe65785c947225142d44aa | |
parent | 4eaf43a21b1041d98c001c38608d7e80dda293a9 (diff) | |
download | ingen-b0dbb8477bfd3010a2139ae2a7e0c89b3758721a.tar.gz ingen-b0dbb8477bfd3010a2139ae2a7e0c89b3758721a.tar.bz2 ingen-b0dbb8477bfd3010a2139ae2a7e0c89b3758721a.zip |
Remove redundant const qualifiers
-rw-r--r-- | .clang-tidy | 2 | ||||
-rw-r--r-- | ingen/Configuration.hpp | 2 | ||||
-rw-r--r-- | ingen/Library.hpp | 2 | ||||
-rw-r--r-- | ingen/URIMap.hpp | 2 | ||||
-rw-r--r-- | 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"); |