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

Delta Between Two Patch Sets: src/plugin/ATL_Deprecate.cpp

Issue 5070706781978624: Issue #276 - introduce class BSTR_Argument (Closed)
Left Patch Set: Created July 25, 2014, 9:32 p.m.
Right Patch Set: clarified documentation for operator&, updated to_wstring(CString) Created July 30, 2014, 2:13 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/plugin/ATL_Deprecate.h ('k') | src/plugin/AdblockPlusDomTraverser.cpp » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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 */
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
4 4
5 #include "ATL_Deprecate.h" 5 #include "ATL_Deprecate.h"
6 6
7 std::wstring to_wstring( ATL::CString s ) 7 std::wstring to_wstring(const 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
8 { 8 {
9 std::wstring result( s.GetBuffer() ); 9 std::wstring result(static_cast<const wchar_t *>(s));
10 s.ReleaseBuffer();
11 return result; 10 return result;
12 } 11 }
13 12
14 13 ATL::CString to_CString(const std::wstring& s)
15 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
16 { 14 {
17 return ATL::CString( s.c_str() ); 15 return ATL::CString(s.c_str());
18 } 16 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld