@@ -276,7 +276,7 @@ TPollAsyncSockets = class
276
276
fOnFirstRead, fOnStop: TOnPollAsyncProc;
277
277
fWaitingWrite: TPollAsyncConnections; // to implement soWaitWrite
278
278
function GetCount : integer;
279
- procedure DoLog (const TextFmt: RawUtf8 ; const TextArgs: array of const ;
279
+ procedure DoLog (TextFmt: PUtf8Char ; const TextArgs: array of const ;
280
280
Level: TSynLogLevel = sllTrace);
281
281
// pseError: return false to close socket and connection
282
282
function OnError (connection: TPollAsyncConnection;
@@ -624,7 +624,7 @@ TAsyncConnections = class(TLoggedThread)
624
624
function LockedConnectionDelete (
625
625
aConnection: TAsyncConnection; aIndex: integer): boolean;
626
626
procedure ConnectionAdd (conn: TAsyncConnection);
627
- procedure DoLog (Level: TSynLogLevel; const TextFmt: RawUtf8 ;
627
+ procedure DoLog (Level: TSynLogLevel; TextFmt: PUtf8Char ;
628
628
const TextArgs: array of const ; Instance: TObject);
629
629
procedure ProcessIdleTix (Sender: TObject; NowTix: Int64); virtual ;
630
630
function ProcessClientStart (Sender: TPollAsyncConnection): boolean;
@@ -1788,7 +1788,7 @@ function TPollAsyncSockets.GetCount: integer;
1788
1788
result := { $ifdef USE_WINIOCP} fIocpRecvSend { $else} fRead { $endif} .Count;
1789
1789
end ;
1790
1790
1791
- procedure TPollAsyncSockets.DoLog (const TextFmt: RawUtf8 ;
1791
+ procedure TPollAsyncSockets.DoLog (TextFmt: PUtf8Char ;
1792
1792
const TextArgs: array of const ; Level: TSynLogLevel);
1793
1793
begin
1794
1794
fDebugLog.Add.Log(Level, TextFmt, TextArgs, self);
@@ -3088,7 +3088,7 @@ function TAsyncConnections.ThreadPollingWakeup(Events: integer): PtrInt;
3088
3088
end ;
3089
3089
{ $endif USE_WINIOCP}
3090
3090
3091
- procedure TAsyncConnections.DoLog (Level: TSynLogLevel; const TextFmt: RawUtf8 ;
3091
+ procedure TAsyncConnections.DoLog (Level: TSynLogLevel; TextFmt: PUtf8Char ;
3092
3092
const TextArgs: array of const ; Instance: TObject);
3093
3093
begin
3094
3094
if (self <> nil ) and
0 commit comments