OLD | NEW |
1 #include "IE_version.h" | 1 #include "IE_Version.h" |
2 #include "Registry.h" | 2 #include "Registry.h" |
3 #include <cstdlib> | 3 #include <cstdlib> |
4 | 4 |
5 using namespace AdblockPlus; | 5 using namespace AdblockPlus; |
6 | 6 |
7 /** | 7 /** |
8 * Internal implementation of the IE version string. | 8 * Internal implementation of the IE version string. |
9 * | 9 * |
10 * This version throws exceptions for its errors, relying on its caller to handl
e them. | 10 * This version throws exceptions for its errors, relying on its caller to handl
e them. |
11 * | 11 * |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 else if (version[2] == L'.') | 87 else if (version[2] == L'.') |
88 { | 88 { |
89 return 10 * (version[0] - L'0') + (version[1] - L'0'); | 89 return 10 * (version[0] - L'0') + (version[1] - L'0'); |
90 } | 90 } |
91 } | 91 } |
92 catch (...) | 92 catch (...) |
93 { | 93 { |
94 } | 94 } |
95 return 0; | 95 return 0; |
96 } | 96 } |
OLD | NEW |