summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-27 17:57:37 +0100
committerDavid Robillard <d@drobilla.net>2020-11-27 21:42:51 +0100
commit6d5aca1fb1552ad791a59507ebbafcda7884cb6c (patch)
tree04511393c5b2f7d30ffcc07eb07ba00994cda917
parent60a5b15002ea970ffaee6489a5a9322698e6d0b3 (diff)
downloadpatchage-6d5aca1fb1552ad791a59507ebbafcda7884cb6c.tar.gz
patchage-6d5aca1fb1552ad791a59507ebbafcda7884cb6c.tar.bz2
patchage-6d5aca1fb1552ad791a59507ebbafcda7884cb6c.zip
Fix redundant smart pointer get
-rw-r--r--.clang-tidy1
-rw-r--r--src/PatchageModule.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 7d331cd..ec4bf4a 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -58,7 +58,6 @@ Checks: >
-readability-inconsistent-declaration-parameter-name,
-readability-isolate-declaration,
-readability-make-member-function-const,
- -readability-redundant-smartptr-get,
FormatStyle: file
WarningsAsErrors: '*'
HeaderFilterRegex: 'src/.*' \ No newline at end of file
diff --git a/src/PatchageModule.cpp b/src/PatchageModule.cpp
index 0b09a4f..8d8dfa7 100644
--- a/src/PatchageModule.cpp
+++ b/src/PatchageModule.cpp
@@ -25,7 +25,7 @@ PatchageModule::PatchageModule(Patchage* app,
ModuleType type,
double x,
double y)
- : Module(*app->canvas().get(), name, x, y)
+ : Module(*app->canvas(), name, x, y)
, _app(app)
, _menu(nullptr)
, _name(name)