@@ -200,7 +200,7 @@ struct AttributeValue
200200 Attribute::Variant data; // Room for one element, which is the common case.
201201 std::vector<uint8_t > dataArray; // Variable length data in case the fixed size variant is too small.
202202 std::u16string stringValue; // string representation, typed by user or read from data file.
203- uint32_t cookieValue = 0 ; // useful to compare for value changes, incremented each time.
203+ uint32_t cookieValue = 0 ; // useful to compare for value changes, incremented each time data is changed .
204204
205205 array_ref<uint8_t > Get (); // Get the data.
206206 HRESULT Set (Attribute const & attribute, _In_z_ char16_t const * newStringValue);
@@ -249,8 +249,8 @@ struct IAttributeSource
249249
250250 // Get single value of specific type (not binary data).
251251 // If the actual type is incompatible with the desired type or the value
252- // is empty, it returns the default value and HRESULT for
253- // ERROR_UNMAPPED_SUBSTITUTION_STRING .
252+ // is empty or it gets ERROR_UNMAPPED_SUBSTITUTION_STRING, then it returns
253+ // the default value .
254254 template <typename T>
255255 T GetValue (uint32_t id, T defaultValue)
256256 {
@@ -319,7 +319,7 @@ struct IAttributeSource
319319
320320 // Get an array of specific data types.
321321 // If the actual type is incompatible with the desired type, it returns
322- // an empty array and HRESULT for ERROR_UNMAPPED_SUBSTITUTION_STRING .
322+ // an empty array.
323323 template <typename T>
324324 array_ref<T> GetValues (uint32_t id)
325325 {
0 commit comments