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

Unified 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.
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/COM_Value.h ('k') | src/plugin/PluginClass.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/COM_Value.cpp
===================================================================
--- a/src/plugin/COM_Value.cpp
+++ b/src/plugin/COM_Value.cpp
@@ -62,3 +62,18 @@
}
return std::wstring(bstr, SysStringLen(bstr));
}
+
+
+bool IncomingParam::wstringConvertible() const
+{
+ /*
+ * Initial support is for BSTR only.
+ * We've got one case later where we'll need to support VT_I4.
+ */
+ return var.vt == VT_BSTR;
+}
+
+std::wstring IncomingParam::wstringValueNoexcept() const
+{
+ return L"";
+}
« 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