Commit bd2c2c4c authored by Ronan's avatar Ronan
Browse files

fix(Variant): avoid loop in generic variant creation

parent d6bf89b6
......@@ -427,4 +427,10 @@ void Variant::getValue (int type, void *value, bool *soFarSoGood) const {
}
}
Variant Variant::createGeneric (void *value) {
Variant variant(Generic);
variant.getPrivate()->value.g = value;
return variant;
}
LINPHONE_END_NAMESPACE
......@@ -129,11 +129,7 @@ private:
void getValue (int type, void *value, bool *soFarSoGood) const;
static inline Variant createGeneric (void *value) {
Variant variant(Generic);
variant.setValue<void *>(value);
return variant;
}
static Variant createGeneric (void *value);
VariantPrivate *mPrivate = nullptr;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment