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

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

Issue 5491870822039552: Issue #1234 - Remove old versions of ToWstring and ToCString (Closed)
Patch Set: Created Jan. 13, 2015, 3:35 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 | « no previous file | src/plugin/AdblockPlusClient.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 /** 1 /**
2 * \file ATL_Deprecate.cpp Transient functions used during the ATL removal proce ss. 2 * \file ATL_Deprecate.cpp Transient functions used during the ATL removal proce ss.
3 */ 3 */
4 4
5 #include "ATL_Deprecate.h" 5 #include "ATL_Deprecate.h"
6 6
7 std::wstring ToWstring(const ATL::CString& s) 7 std::wstring ToWstring(const ATL::CString& s)
8 { 8 {
9 std::wstring result(static_cast<const wchar_t *>(s)); 9 std::wstring result(static_cast<const wchar_t*>(s));
10 return result; 10 return result;
11 } 11 }
12 12
13 std::wstring to_wstring(const ATL::CString& s)
14 {
15 return ToWstring(s);
16 }
17
18 ATL::CString ToCString(const std::wstring& s) 13 ATL::CString ToCString(const std::wstring& s)
19 { 14 {
20 return ATL::CString(s.c_str()); 15 return ATL::CString(s.c_str());
21 } 16 }
22
23 ATL::CString to_CString(const std::wstring& s)
24 {
25 return ToCString(s);
26 }
OLDNEW
« no previous file with comments | « no previous file | src/plugin/AdblockPlusClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld