aboutsummaryrefslogtreecommitdiff
path: root/plugins/AdblockFilter
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-06-23 17:16:35 +0300
committerAqua-sama <aqua@iserlohn-fortress.net>2020-06-23 17:16:35 +0300
commitdd277842571ade5f78b33171648356a56fec400a (patch)
treee046e3d73a6bf8af173f34de59e1a20b96fd3504 /plugins/AdblockFilter
parentenable smolblok (diff)
downloadsmolbote-dd277842571ade5f78b33171648356a56fec400a.tar.xz
Fix compiler warnings in Configuration
Diffstat (limited to 'plugins/AdblockFilter')
-rw-r--r--plugins/AdblockFilter/options.cpp2
-rw-r--r--plugins/AdblockFilter/options.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/AdblockFilter/options.cpp b/plugins/AdblockFilter/options.cpp
index 08f30ee..ad231bf 100644
--- a/plugins/AdblockFilter/options.cpp
+++ b/plugins/AdblockFilter/options.cpp
@@ -34,7 +34,7 @@ constexpr std::array abpTypeOptions = {
"__unknown" // ResourceTypeUnknown 255 Unknown request type.
};
-auto parseTypeOption(QStringRef &option)
+inline auto parseTypeOption(QStringRef &option)
{
struct {
bool found = false;
diff --git a/plugins/AdblockFilter/options.h b/plugins/AdblockFilter/options.h
index efc47a6..9f7a374 100644
--- a/plugins/AdblockFilter/options.h
+++ b/plugins/AdblockFilter/options.h
@@ -37,7 +37,7 @@ struct Options {
bool parseAbp(const QStringRef &options);
// TODO private:
- std::bitset<32> flags;
+ std::bitset<32> flags = 0;
};
} // namespace AdblockPlus