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

Side by Side Diff: common/src/IeVersion.cpp

Issue 6216090891845632: Issue #404 - Create common library shared between plugin/engine and installer (Closed)
Patch Set: Rename to IeVersion*.*; fix URL in copyright notice Created Feb. 27, 2015, 1:50 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17 #include "IeVersion.h"
18 #include "IE_version.h"
19 #include "Registry.h" 18 #include "Registry.h"
20 #include <cstdlib> 19 #include <cstdlib>
21 20
22 using namespace AdblockPlus; 21 using namespace AdblockPlus;
23 22
24 /** 23 /**
25 * Internal implementation of the IE version string. 24 * Internal implementation of the IE version string.
26 * 25 *
27 * This version throws exceptions for its errors, relying on its caller to handl e them. 26 * This version throws exceptions for its errors, relying on its caller to handl e them.
28 * 27 *
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 else if (version[2] == L'.') 103 else if (version[2] == L'.')
105 { 104 {
106 return 10 * (version[0] - L'0') + (version[1] - L'0'); 105 return 10 * (version[0] - L'0') + (version[1] - L'0');
107 } 106 }
108 } 107 }
109 catch (...) 108 catch (...)
110 { 109 {
111 } 110 }
112 return 0; 111 return 0;
113 } 112 }
OLDNEW

Powered by Google App Engine
This is Rietveld