summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.clang-tidy1
-rw-r--r--src/gui/BreadCrumbs.cpp12
2 files changed, 6 insertions, 7 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 615e565b..c714a9a4 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-faster-string-find,
-performance-for-range-copy,
-performance-no-automatic-move,
-performance-type-promotion-in-math-fn,
diff --git a/src/gui/BreadCrumbs.cpp b/src/gui/BreadCrumbs.cpp
index 33b2c4b3..d641f5ac 100644
--- a/src/gui/BreadCrumbs.cpp
+++ b/src/gui/BreadCrumbs.cpp
@@ -92,16 +92,16 @@ BreadCrumbs::build(Raul::Path path, SPtr<GraphView> view)
if (suffix[0] == '/') {
suffix = suffix.substr(1);
}
- const string name = suffix.substr(0, suffix.find("/"));
+ const string name = suffix.substr(0, suffix.find('/'));
_full_path = _full_path.child(Raul::Symbol(name));
BreadCrumb* but = create_crumb(_full_path, view);
pack_start(*but, false, false, 1);
_breadcrumbs.push_back(but);
but->show();
- if (suffix.find("/") == string::npos) {
+ if (suffix.find('/') == string::npos) {
break;
} else {
- suffix = suffix.substr(suffix.find("/")+1);
+ suffix = suffix.substr(suffix.find('/') + 1);
}
}
@@ -135,17 +135,17 @@ BreadCrumbs::build(Raul::Path path, SPtr<GraphView> view)
if (suffix[0] == '/') {
suffix = suffix.substr(1);
}
- const string name = suffix.substr(0, suffix.find("/"));
+ const string name = suffix.substr(0, suffix.find('/'));
working_path = working_path.child(Raul::Symbol(name));
BreadCrumb* but = create_crumb(working_path, view);
pack_start(*but, false, false, 1);
_breadcrumbs.push_back(but);
but->set_active(working_path == _active_path);
but->show();
- if (suffix.find("/") == string::npos) {
+ if (suffix.find('/') == string::npos) {
break;
} else {
- suffix = suffix.substr(suffix.find("/")+1);
+ suffix = suffix.substr(suffix.find('/')+1);
}
}
}