#1 2017-01-31 22:30:13

DavidRM
Member
Registered: 2016-12-19
Posts: 29

TDocVariant and "Implicit string cast from Variant to RawUTF8"

Do I need to do anything about this warning? I get it when I'm passing a TDocVariant's "property" into a mORMot function that expects RawUTF8 parameters (e.g., TSQLAuthUser.ComputeHashedPassword).

Thanks.

-David

Offline

#2 2017-02-01 16:55:22

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,240
Website

Re: TDocVariant and "Implicit string cast from Variant to RawUTF8"

Make it explicit using VariantToUTF8() function.

Offline

#3 2017-02-01 19:19:05

DavidRM
Member
Registered: 2016-12-19
Posts: 29

Re: TDocVariant and "Implicit string cast from Variant to RawUTF8"

ab wrote:

Make it explicit using VariantToUTF8() function.

Thanks!

-David

Offline

Board footer

Powered by FluxBB