• Home
  • Raw
  • Download

Lines Matching refs:var_

16   ::VariantClear(&var_);  in ~ScopedVariant()
20 var_.vt = VT_EMPTY; in ScopedVariant()
25 var_.vt = VT_BSTR; in ScopedVariant()
26 var_.bstrVal = ::SysAllocStringLen(str, length); in ScopedVariant()
30 var_.vt = vt; in ScopedVariant()
31 var_.lVal = value; in ScopedVariant()
36 var_.vt = vt; in ScopedVariant()
37 var_.dblVal = value; in ScopedVariant()
41 var_.vt = VT_EMPTY; in ScopedVariant()
46 var_.vt = VT_EMPTY; in ScopedVariant()
51 var_.vt = VT_EMPTY; in ScopedVariant()
56 var_.vt = VT_EMPTY; in ScopedVariant()
61 if (&var != &var_) { in Reset()
62 ::VariantClear(&var_); in Reset()
63 var_ = var; in Reset()
68 VARIANT var = var_; in Release()
69 var_.vt = VT_EMPTY; in Release()
74 VARIANT tmp = var_; in Swap()
75 var_ = var.var_; in Swap()
76 var.var_ = tmp; in Swap()
80 DCHECK(!IsLeakableVarType(var_.vt)) << "variant leak. type: " << var_.vt; in Receive()
81 return &var_; in Receive()
86 ::VariantCopy(&ret, &var_); in Copy()
92 HRESULT hr = ::VarCmp(const_cast<VARIANT*>(&var_), const_cast<VARIANT*>(&var), in Compare()
115 DCHECK(!IsLeakableVarType(var_.vt)) << "leaking variant: " << var_.vt; in Set()
116 var_.vt = VT_BSTR; in Set()
117 var_.bstrVal = ::SysAllocString(str); in Set()
121 DCHECK(!IsLeakableVarType(var_.vt)) << "leaking variant: " << var_.vt; in Set()
122 var_.vt = VT_I1; in Set()
123 var_.cVal = i8; in Set()
127 DCHECK(!IsLeakableVarType(var_.vt)) << "leaking variant: " << var_.vt; in Set()
128 var_.vt = VT_UI1; in Set()
129 var_.bVal = ui8; in Set()
133 DCHECK(!IsLeakableVarType(var_.vt)) << "leaking variant: " << var_.vt; in Set()
134 var_.vt = VT_I2; in Set()
135 var_.iVal = i16; in Set()
139 DCHECK(!IsLeakableVarType(var_.vt)) << "leaking variant: " << var_.vt; in Set()
140 var_.vt = VT_UI2; in Set()
141 var_.uiVal = ui16; in Set()
145 DCHECK(!IsLeakableVarType(var_.vt)) << "leaking variant: " << var_.vt; in Set()
146 var_.vt = VT_I4; in Set()
147 var_.lVal = i32; in Set()
151 DCHECK(!IsLeakableVarType(var_.vt)) << "leaking variant: " << var_.vt; in Set()
152 var_.vt = VT_UI4; in Set()
153 var_.ulVal = ui32; in Set()
157 DCHECK(!IsLeakableVarType(var_.vt)) << "leaking variant: " << var_.vt; in Set()
158 var_.vt = VT_I8; in Set()
159 var_.llVal = i64; in Set()
163 DCHECK(!IsLeakableVarType(var_.vt)) << "leaking variant: " << var_.vt; in Set()
164 var_.vt = VT_UI8; in Set()
165 var_.ullVal = ui64; in Set()
169 DCHECK(!IsLeakableVarType(var_.vt)) << "leaking variant: " << var_.vt; in Set()
170 var_.vt = VT_R4; in Set()
171 var_.fltVal = r32; in Set()
175 DCHECK(!IsLeakableVarType(var_.vt)) << "leaking variant: " << var_.vt; in Set()
176 var_.vt = VT_R8; in Set()
177 var_.dblVal = r64; in Set()
181 DCHECK(!IsLeakableVarType(var_.vt)) << "leaking variant: " << var_.vt; in SetDate()
182 var_.vt = VT_DATE; in SetDate()
183 var_.date = date; in SetDate()
187 DCHECK(!IsLeakableVarType(var_.vt)) << "leaking variant: " << var_.vt; in Set()
188 var_.vt = VT_DISPATCH; in Set()
189 var_.pdispVal = disp; in Set()
195 DCHECK(!IsLeakableVarType(var_.vt)) << "leaking variant: " << var_.vt; in Set()
196 var_.vt = VT_BOOL; in Set()
197 var_.boolVal = b ? VARIANT_TRUE : VARIANT_FALSE; in Set()
201 DCHECK(!IsLeakableVarType(var_.vt)) << "leaking variant: " << var_.vt; in Set()
202 var_.vt = VT_UNKNOWN; in Set()
203 var_.punkVal = unk; in Set()
209 DCHECK(!IsLeakableVarType(var_.vt)) << "leaking variant: " << var_.vt; in Set()
210 if (SUCCEEDED(::SafeArrayGetVartype(array, &var_.vt))) { in Set()
211 var_.vt |= VT_ARRAY; in Set()
212 var_.parray = array; in Set()
215 var_.vt = VT_EMPTY; in Set()
220 DCHECK(!IsLeakableVarType(var_.vt)) << "leaking variant: " << var_.vt; in Set()
221 if (FAILED(::VariantCopy(&var_, &var))) { in Set()
223 var_.vt = VT_EMPTY; in Set()
228 if (&var != &var_) { in operator =()
229 VariantClear(&var_); in operator =()