OLD | NEW |
1 #include "stdafx.h" | 1 #include "stdafx.h" |
2 | 2 |
3 #include "../shared/AutoHandle.h" | 3 #include "../shared/AutoHandle.h" |
4 #include "../shared/Communication.h" | 4 #include "../shared/Communication.h" |
| 5 #include "../shared/Utils.h" |
5 #include "Debug.h" | 6 #include "Debug.h" |
6 #include "Utils.h" | |
7 | 7 |
8 namespace | 8 namespace |
9 { | 9 { |
10 std::auto_ptr<AdblockPlus::FilterEngine> filterEngine; | 10 std::auto_ptr<AdblockPlus::FilterEngine> filterEngine; |
11 | 11 |
12 std::string ToUtf8String(std::wstring str) | 12 std::string ToUtf8String(std::wstring str) |
13 { | 13 { |
14 size_t length = str.size(); | 14 size_t length = str.size(); |
15 if (length == 0) | 15 if (length == 0) |
16 return std::string(); | 16 return std::string(); |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 } | 208 } |
209 catch (std::runtime_error e) | 209 catch (std::runtime_error e) |
210 { | 210 { |
211 DebugException(e); | 211 DebugException(e); |
212 return 1; | 212 return 1; |
213 } | 213 } |
214 } | 214 } |
215 | 215 |
216 return 0; | 216 return 0; |
217 } | 217 } |
OLD | NEW |