Index: src/plugin/ATL_Deprecate.cpp |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/src/plugin/ATL_Deprecate.cpp |
@@ -0,0 +1,18 @@ |
+/** |
+ * \file ATL_Deprecate.cpp Transient functions used during the ATL removal process. |
+ */ |
sergei
2014/07/28 09:18:26
This comment looks useless for me. Put our licence
Eric
2014/07/29 16:59:27
It's a doxygen comment.
sergei
2014/07/30 10:10:54
I see that it's doxygen comment, but it's not a re
Eric
2014/07/30 14:14:42
I use it. Visual Studio is rather lacking in this
|
+ |
+#include "ATL_Deprecate.h" |
+ |
+std::wstring to_wstring( ATL::CString s ) |
sergei
2014/07/28 09:18:26
1. I don't like the function without namespace. Fi
Eric
2014/07/29 16:59:27
It doesn't need a namespace. The ATL::CString argu
sergei
2014/07/30 10:10:54
Firstly think. Why do we need to call non-const me
Eric
2014/07/30 14:14:42
That's for a different class! 'CString' and 'CSimp
|
+{ |
+ std::wstring result( s.GetBuffer() ); |
+ s.ReleaseBuffer(); |
+ return result; |
+} |
+ |
+ |
+ATL::CString to_CString( const std::wstring& s ) |
sergei
2014/07/28 09:18:26
It's in every code review. Stop using spaces here
|
+{ |
+ return ATL::CString( s.c_str() ); |
+} |