mirror of
https://github.com/polybar/polybar.git
synced 2026-02-09 14:55:48 +00:00
fix(cmake): Make specific c++lib linking optional
- Do not enforce linking against libc++ - Fix various linter warnings
This commit is contained in:
@ -120,7 +120,7 @@ namespace inotify_util {
|
||||
inline auto make_watch(string path) {
|
||||
di::injector<inotify_watch_t> injector = di::make_injector(di::bind<>().to(path));
|
||||
return injector.create<inotify_watch_t>();
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
LEMONBUDDY_NS_END
|
||||
|
||||
@ -35,7 +35,7 @@ namespace scope_util {
|
||||
template <typename Fn = function<void()>, typename... Args>
|
||||
decltype(auto) make_exit_handler(Fn&& fn, Args&&... args) {
|
||||
return make_unique<on_exit<Args...>>(forward<Fn>(fn), forward<Args>(args)...);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
LEMONBUDDY_NS_END
|
||||
|
||||
@ -59,7 +59,7 @@ namespace string_util {
|
||||
for (size_t i = 0; i < haystack.length(); i++) {
|
||||
if (haystack.compare(i, needle.length(), needle) == 0) {
|
||||
replaced += replacement;
|
||||
i += needle.length()-1;
|
||||
i += needle.length() - 1;
|
||||
} else {
|
||||
replaced += haystack[i];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user