Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

W510 False positive for strings

 Post Reply Post Reply
Jura Lloyd View Drop Down
New Member
New Member

Joined: 11 Oct 2016
Posts: 7
Post Options Post Options   Quote Jura Lloyd Quote  Post ReplyReply Direct Link To This Post Topic: W510 False positive for strings
    Posted: 24 Apr 2017 at 8:46pm

W510 should not apply to string values because it is a valid scenario to add string to itself

// this function should not generate warning
function DoubleS(const S: string): string;
  Result := S + S;

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down