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

Delta Between Two Patch Sets: compiled/InvalidFilter.cpp

Issue 29333474: Issue 4125 - [emscripten] Convert filter classes to C++ (Closed)
Left Patch Set: Created Jan. 14, 2016, 4:40 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/InvalidFilter.h ('k') | compiled/RegExpFilter.h » ('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 #include <emscripten.h> 1 #include "InvalidFilter.h"
2 2
3 #include "InvalidFilter.h" 3 InvalidFilter::InvalidFilter(const String& text,
4 #include "tools.h" 4 const String& reason)
5 5 : Filter(Type::INVALID, text), mReason(reason)
6 InvalidFilter::InvalidFilter(const std::u16string& text, const std::u16string& r eason)
7 : Filter(text), reason(reason)
8 { 6 {
9 } 7 }
10
11 // API
12 extern "C"
13 {
14 char16_t* EMSCRIPTEN_KEEPALIVE InvalidFilter_get_reason(InvalidFilter* obj, si ze_t* resultLen)
15 {
16 return stringToBuffer(obj->get_reason(), resultLen);
17 }
18 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld