| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |