util: clang-tidy

This commit is contained in:
Austin Horstman
2024-07-02 10:38:58 -05:00
parent 14c3235c12
commit d66685a3aa
9 changed files with 54 additions and 48 deletions
+4 -2
View File
@@ -3,13 +3,15 @@
#include <json/value.h>
#include <spdlog/spdlog.h>
#include <utility>
namespace waybar::util {
int default_priority_function(std::string& key) { return 0; }
RegexCollection::RegexCollection(const Json::Value& map, std::string default_repr,
std::function<int(std::string&)> priority_function)
: default_repr(default_repr) {
const std::function<int(std::string&)>& priority_function)
: default_repr(std::move(default_repr)) {
if (!map.isObject()) {
spdlog::warn("Mapping is not an object");
return;