| Index: src/plugin/COM_Value.cpp |
| =================================================================== |
| --- a/src/plugin/COM_Value.cpp |
| +++ b/src/plugin/COM_Value.cpp |
| @@ -62,3 +62,27 @@ |
| } |
| return std::wstring( bstr, SysStringLen( bstr ) ); |
| } |
| + |
| + |
| +namespace |
| +{ |
| + /** |
| + * Pre-construction assistant for wstring_Incoming_Param. |
| + * |
| + * Because wstring_Incoming_Param is a derived class, |
| + * we need to have a wstring value to initialize the base class. |
| + */ |
| + std::wstring construct_Incoming_Param( BSTR b ) |
| + { |
| + if ( !b ) |
| + { |
| + return std::wstring(); |
| + } |
| + return std::wstring( b, SysStringLen( b ) ); |
| + } |
| +} |
| + |
| +Incoming_Param::Incoming_Param( BSTR b ) |
| + : std::wstring( construct_Incoming_Param( b ) ) |
| +{ |
| +} |