Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 #include "ContentType.h" | |
2 #include "Communication.h" | |
3 | |
4 using AdblockPlus::FilterEngine; | |
5 using Communication::InputBuffer; | |
6 using Communication::OutputBuffer; | |
7 | |
8 InputBuffer& operator>>(InputBuffer& in, FilterEngine::ContentType& contentType) | |
Oleksandr
2015/01/30 12:39:11
This seems like a lot of code for very little purp
sergei
2015/01/30 13:20:06
I've removed these files.
Eric
2015/02/02 06:58:27
Sergei added this at my suggestion in order to gat
| |
9 { | |
10 int32_t type; | |
11 in >> type; | |
12 contentType = static_cast<FilterEngine::ContentType>(contentType); | |
13 return in; | |
14 } | |
15 | |
16 OutputBuffer& operator<<(OutputBuffer& out, FilterEngine::ContentType contentTyp e) | |
17 { | |
18 return out << static_cast<int32_t>(contentType); | |
19 } | |
OLD | NEW |