LEFT | RIGHT |
1 #ifndef ADBLOCKPLUS_INVALIDFILTER_H | 1 #pragma once |
2 #define ADBLOCKPLUS_INVALIDFILTER_H | |
3 | |
4 #include <string> | |
5 | 2 |
6 #include "Filter.h" | 3 #include "Filter.h" |
7 #include "tools.h" | |
8 | 4 |
9 class InvalidFilter : public Filter | 5 class InvalidFilter : public Filter |
10 { | 6 { |
11 public: | 7 public: |
12 InvalidFilter(const std::u16string& text, const std::u16string& reason); | 8 explicit InvalidFilter(const String& text, const String& reason); |
13 Type GetType(); | 9 EMSCRIPTEN_KEEPALIVE const String& GetReason() const |
14 const std::u16string get_reason() | |
15 { | 10 { |
16 return reason; | 11 return mReason; |
17 }; | 12 }; |
18 private: | 13 private: |
19 std::u16string reason; | 14 OwnedString mReason; |
20 }; | 15 }; |
21 | |
22 #endif | |
LEFT | RIGHT |