#1 2019-01-11 07:01:25

Zebedee
Member
Registered: 2019-01-11
Posts: 3

(Warnings) Implicit string cast from 'string' to 'RawUTF8'

When I compile my code I get more than 700+ of this warning. I want to clean them all up.
Is casting the only way? like RawUTF8(aStringValue) or String(aRawUTF8Value)
Is there any other way to suggest? Helper vs.

Offline

#2 2019-01-11 08:38:48

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

Re: (Warnings) Implicit string cast from 'string' to 'RawUTF8'

From string to RawUTF8 it is RawUTF8(aStringValue) for sure.

For slightly faster process, you can use SynCommons' ToUTF8() and StringToUTF8() functions.

Offline

Board footer

Powered by FluxBB