Left: | ||
Right: |
OLD | NEW |
---|---|
1 /** | 1 /** |
2 * \file COM_Value.h Support for the values used in COM and Automation. | 2 * \file COM_Value.h Support for the values used in COM and Automation. |
3 */ | 3 */ |
4 #ifndef COM_VALUE_H | 4 #ifndef COM_VALUE_H |
5 #define COM_VALUE_H | 5 #define COM_VALUE_H |
6 | 6 |
7 #include <wtypes.h> | 7 #include <wtypes.h> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 namespace AdblockPlus | 10 namespace AdblockPlus |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
108 /** | 108 /** |
109 * Copy assignment is deleted | 109 * Copy assignment is deleted |
110 */ | 110 */ |
111 BSTR_Argument& operator=( const BSTR_Argument& ); // = delete | 111 BSTR_Argument& operator=( const BSTR_Argument& ); // = delete |
112 | 112 |
113 /** | 113 /** |
114 * Move assignment is deleted | 114 * Move assignment is deleted |
115 */ | 115 */ |
116 BSTR_Argument& operator=( BSTR_Argument&& ); // = delete | 116 BSTR_Argument& operator=( BSTR_Argument&& ); // = delete |
117 }; | 117 }; |
118 | |
119 /** | |
120 * Constructor class for BSTR [in] parameters arriving from our COM entry po ints. | |
121 * | |
122 * The life cycle of a BSTR value that comes to us as an [in] parameter is e ntirely managed by the caller. | |
123 * Thus this class simply derives from std::wstring and provides an appropri ate constructor. | |
124 * | |
125 * This class is a narrow technique toward a larger goal of eliminating CCom BSTR, | |
126 * which had been used for these parameters. | |
127 * All the uses, however, had been for IDispatch entry points, which are all VARIANT. | |
128 * In all cases, the caller much first check the type of the VARIANT structu re before constructing an instance. | |
129 * Perhaps better would be a class, say, wstring_Incoming_Param that took a VARIANT as a constructor argument | |
130 * and converted it to a string. | |
131 * Such a class, however, is beyond the scope of the work that this class wa s a part of. | |
132 */ | |
133 class Incoming_Param | |
134 : public std::wstring | |
135 { | |
136 public: | |
137 Incoming_Param( BSTR b ); | |
sergei
2014/07/28 09:24:31
Instead of commenting all bad things here, I will
Eric
2014/07/29 19:53:08
Oh, that's just awful. If there's one thing I've l
| |
138 }; | |
118 } | 139 } |
119 } | 140 } |
120 | 141 |
121 #endif | 142 #endif |
OLD | NEW |