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

Unified Diff: src/plugin/ATL_Deprecate.cpp

Issue 6377735828013056: Issue #1234 - conversion functions between std::wstring and ATL::CString (Closed)
Patch Set: Created Oct. 1, 2014, 7:38 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/plugin/ATL_Deprecate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/ATL_Deprecate.cpp
===================================================================
--- a/src/plugin/ATL_Deprecate.cpp
+++ b/src/plugin/ATL_Deprecate.cpp
@@ -4,13 +4,23 @@
#include "ATL_Deprecate.h"
-std::wstring to_wstring(const ATL::CString& s)
+std::wstring ToWstring(const ATL::CString& s)
{
std::wstring result(static_cast<const wchar_t *>(s));
return result;
}
-ATL::CString to_CString(const std::wstring& s)
+std::wstring to_wstring(const ATL::CString& s)
+{
+ return ToWstring(s);
+}
+
+ATL::CString ToCString(const std::wstring& s)
{
return ATL::CString(s.c_str());
}
+
+ATL::CString to_CString(const std::wstring& s)
+{
+ return ToCString(s);
+}
« 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