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

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

Issue 5109791353470976: Issue #1234 - standardize some string conversions (Closed)
Patch Set: Created Aug. 6, 2014, 8:19 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
« no previous file with comments | « src/plugin/PluginFilter.cpp ('k') | src/plugin/PluginTabBase.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "PluginFilter.h" 8 #include "PluginFilter.h"
9 #include "PluginMutex.h" 9 #include "PluginMutex.h"
10 #include "../shared/Utils.h" 10 #include "../shared/Utils.h"
11 #include <memory> 11 #include <memory>
12 12
13 13
14 // IE functions 14 // IE functions
15 #pragma comment(lib, "iepmapi.lib") 15 #pragma comment(lib, "iepmapi.lib")
16 16
17 #include <knownfolders.h> 17 #include <knownfolders.h>
18 18
19 namespace 19 namespace
20 { 20 {
21 std::wstring CreateDomainWhitelistingFilter(const CString domain) 21 std::wstring CreateDomainWhitelistingFilter(const CString& domain)
22 { 22 {
23 return std::wstring(L"@@||") + domain.GetString() + std::wstring(L"^$documen t"); 23 return L"@@||" + to_wstring(domain) + L"^$document";
24 } 24 }
25 } 25 }
26 26
27 class TSettings 27 class TSettings
28 { 28 {
29 DWORD processorId; 29 DWORD processorId;
30 30
31 char sPluginId[44]; 31 char sPluginId[44];
32 }; 32 };
33 33
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 270
271 CString CPluginSettings::GetAppLocale() 271 CString CPluginSettings::GetAppLocale()
272 { 272 {
273 return to_CString(GetBrowserLanguage()); 273 return to_CString(GetBrowserLanguage());
274 } 274 }
275 275
276 CString CPluginSettings::GetDocumentationLink() 276 CString CPluginSettings::GetDocumentationLink()
277 { 277 {
278 return CString(CPluginClient::GetInstance()->GetDocumentationLink().c_str()); 278 return CString(CPluginClient::GetInstance()->GetDocumentationLink().c_str());
279 } 279 }
OLDNEW
« no previous file with comments | « src/plugin/PluginFilter.cpp ('k') | src/plugin/PluginTabBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld