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

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

Issue 6650591174459392: Issues #276, #1163 - introduce class IncomingParam (Closed)
Patch Set: rewrite incomparable with patch set 1 Created July 29, 2014, 7:52 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/COM_Value.h ('k') | src/plugin/PluginClass.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /** 1 /**
2 * \file COM_Value.cpp Support for the values used in COM and Automation. 2 * \file COM_Value.cpp Support for the values used in COM and Automation.
3 */ 3 */
4 #include "COM_Value.h" 4 #include "COM_Value.h"
5 #include <stdexcept> 5 #include <stdexcept>
6 6
7 using namespace AdblockPlus::COM; 7 using namespace AdblockPlus::COM;
8 8
9 /* 9 /*
10 * MSDN SysAllocStringLen function http://msdn.microsoft.com/en-us/library/windo ws/desktop/ms221639%28v=vs.85%29.aspx 10 * MSDN SysAllocStringLen function http://msdn.microsoft.com/en-us/library/windo ws/desktop/ms221639%28v=vs.85%29.aspx
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 } 55 }
56 56
57 BSTR_Argument::operator std::wstring() const 57 BSTR_Argument::operator std::wstring() const
58 { 58 {
59 if (!bstr) 59 if (!bstr)
60 { 60 {
61 return std::wstring(); 61 return std::wstring();
62 } 62 }
63 return std::wstring(bstr, SysStringLen(bstr)); 63 return std::wstring(bstr, SysStringLen(bstr));
64 } 64 }
65
66
67 bool IncomingParam::wstringConvertible() const
68 {
69 /*
70 * Initial support is for BSTR only.
71 * We've got one case later where we'll need to support VT_I4.
72 */
73 return var.vt == VT_BSTR;
74 }
75
76 std::wstring IncomingParam::wstringValueNoexcept() const
77 {
78 return L"";
79 }
OLDNEW
« no previous file with comments | « src/plugin/COM_Value.h ('k') | src/plugin/PluginClass.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld