Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: compiled/InvalidFilter.h

Issue 29333474: Issue 4125 - [emscripten] Convert filter classes to C++ (Closed)
Left Patch Set: How with CSS property filters Created Jan. 20, 2016, 1:12 p.m.
Right Patch Set: Addressed comments from Patch Set 28 Created March 21, 2017, 10:04 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « compiled/Filter.cpp ('k') | compiled/InvalidFilter.cpp » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 #ifndef ADBLOCK_PLUS_INVALID_FILTER_H 1 #pragma once
2 #define ADBLOCK_PLUS_INVALID_FILTER_H
3
4 #include <string>
5 2
6 #include "Filter.h" 3 #include "Filter.h"
7 4
8 class InvalidFilter : public Filter 5 class InvalidFilter : public Filter
9 { 6 {
10 public: 7 public:
11 InvalidFilter(const std::u16string& text, const std::u16string& reason); 8 explicit InvalidFilter(const String& text, const String& reason);
12 Type GetType() const; 9 EMSCRIPTEN_KEEPALIVE const String& GetReason() const
13 const std::u16string GetReason() const
14 { 10 {
15 return reason; 11 return mReason;
16 }; 12 };
17 private: 13 private:
18 std::u16string reason; 14 OwnedString mReason;
19 }; 15 };
20
21 #endif
LEFTRIGHT

Powered by Google App Engine
This is Rietveld