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

Unified Diff: src/plugin/ATL_Deprecate.cpp

Issue 5070706781978624: Issue #276 - introduce class BSTR_Argument (Closed)
Patch Set: clarified documentation for operator&, updated to_wstring(CString) Created July 30, 2014, 2:13 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') | src/plugin/AdblockPlusDomTraverser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/ATL_Deprecate.cpp
===================================================================
new file mode 100644
--- /dev/null
+++ b/src/plugin/ATL_Deprecate.cpp
@@ -0,0 +1,16 @@
+/**
+ * \file ATL_Deprecate.cpp Transient functions used during the ATL removal process.
+ */
+
+#include "ATL_Deprecate.h"
+
+std::wstring to_wstring(const ATL::CString& s)
+{
+ std::wstring result(static_cast<const wchar_t *>(s));
+ return result;
+}
+
+ATL::CString to_CString(const std::wstring& s)
+{
+ return ATL::CString(s.c_str());
+}
« no previous file with comments | « src/plugin/ATL_Deprecate.h ('k') | src/plugin/AdblockPlusDomTraverser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld