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

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

Issue 6224768520945664: Issue #276 - conversion functions between std::wstring and ATL::CString (Closed)
Patch Set: Created Aug. 1, 2014, 2:33 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/ATL_Deprecate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /**
2 * \file ATL_Deprecate.cpp Transient functions used during the ATL removal proce ss.
3 */
4
5 #include "ATL_Deprecate.h"
6
7 std::wstring to_wstring(const ATL::CString& s)
Felix Dahlke 2014/09/30 13:21:36 Am I missing something, or why do we use underscor
Eric 2014/09/30 15:43:34 This code was originally written months ago, befor
8 {
9 std::wstring result(static_cast<const wchar_t *>(s));
Felix Dahlke 2014/09/30 13:21:36 No space between wchar_t and * please.
10 return result;
11 }
12
13 ATL::CString to_CString(const std::wstring& s)
14 {
15 return ATL::CString(s.c_str());
16 }
OLDNEW
« no previous file with comments | « src/plugin/ATL_Deprecate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld