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

Side by Side Diff: src/plugin/PluginSettings.cpp

Issue 11612008: Bunch of tiny fixes (Closed)
Patch Set: Created Sept. 5, 2013, 10:38 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 #include "PluginStdAfx.h" 1 #include "PluginStdAfx.h"
2 2
3 #include <Wbemidl.h> 3 #include <Wbemidl.h>
4 #include <time.h> 4 #include <time.h>
5 #include "PluginSettings.h" 5 #include "PluginSettings.h"
6 #include "PluginClient.h" 6 #include "PluginClient.h"
7 #include "PluginSystem.h" 7 #include "PluginSystem.h"
8 #ifdef SUPPORT_FILTER 8 #ifdef SUPPORT_FILTER
9 #include "PluginFilter.h" 9 #include "PluginFilter.h"
10 #endif 10 #endif
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 return lang; 145 return lang;
146 146
147 } 147 }
148 148
149 149
150 bool CPluginSettings::IsPluginEnabled() const 150 bool CPluginSettings::IsPluginEnabled() const
151 { 151 {
152 return GetPluginEnabled(); 152 return GetPluginEnabled();
153 } 153 }
154 154
155 155
Oleksandr 2013/09/05 22:47:40 http://codereview.adblockplus.org/11427013/diff/80
156 std::map<CString, CString> CPluginSettings::GetFilterLanguageTitleList() 156 std::map<CString, CString> CPluginSettings::GetFilterLanguageTitleList() const
157 { 157 {
158 m_subscriptions = CPluginClient::GetInstance()->FetchAvailableSubscriptions(); 158 std::vector<SubscriptionDescription> subscriptions = CPluginClient::GetInstanc e()->FetchAvailableSubscriptions();
159 159
160 std::map<CString, CString> filterList; 160 std::map<CString, CString> filterList;
161 for (size_t i = 0; i < m_subscriptions.size(); i ++) 161 for (size_t i = 0; i < subscriptions.size(); i ++)
162 { 162 {
163 SubscriptionDescription it = m_subscriptions[i]; 163 SubscriptionDescription it = subscriptions[i];
164 filterList.insert(std::make_pair(CString(it.url.c_str()), CString(it.title.c _str()))); 164 filterList.insert(std::make_pair(CString(it.url.c_str()), CString(it.title.c _str())));
165 } 165 }
166 return filterList; 166 return filterList;
167 } 167 }
168 168
169 bool CPluginSettings::IsWorkingThread(DWORD dwThreadId) const 169 bool CPluginSettings::IsWorkingThread(DWORD dwThreadId) const
170 { 170 {
171 if (dwThreadId == 0) 171 if (dwThreadId == 0)
172 { 172 {
173 dwThreadId = ::GetCurrentThreadId(); 173 dwThreadId = ::GetCurrentThreadId();
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 } 331 }
332 332
333 CString CPluginSettings::GetDocumentationLink() 333 CString CPluginSettings::GetDocumentationLink()
334 { 334 {
335 return CString(CPluginClient::GetInstance()->GetDocumentationLink().c_str()); 335 return CString(CPluginClient::GetInstance()->GetDocumentationLink().c_str());
336 } 336 }
337 337
338 338
339 339
340 #endif // SUPPORT_WHITELIST 340 #endif // SUPPORT_WHITELIST
OLDNEW

Powered by Google App Engine
This is Rietveld