mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 10:50:53 +02:00
qt/qt5/qt6: Micro-optimization of commit 2b0787fbf3
This commit is contained in:
parent
2b0787fbf3
commit
c6d94af1b4
@ -6009,7 +6009,7 @@ procedure TQtPushButton.preferredSize(var PreferredWidth,
|
||||
var
|
||||
Size: TSize;
|
||||
|
||||
function HasLineBreak(AText: WideString): Boolean;
|
||||
function HasLineBreak(const AText: WideString): Boolean;
|
||||
begin
|
||||
Result := (pos(#10, AText) > 0) or (pos(#13, AText) > 0);
|
||||
end;
|
||||
|
@ -6259,7 +6259,7 @@ procedure TQtPushButton.preferredSize(var PreferredWidth,
|
||||
var
|
||||
Size: TSize;
|
||||
|
||||
function HasLineBreak(AText: WideString): Boolean;
|
||||
function HasLineBreak(const AText: WideString): Boolean;
|
||||
begin
|
||||
Result := (pos(#10, AText) > 0) or (pos(#13, AText) > 0);
|
||||
end;
|
||||
|
@ -6212,7 +6212,7 @@ procedure TQtPushButton.preferredSize(var PreferredWidth,
|
||||
var
|
||||
Size: TSize;
|
||||
|
||||
function HasLineBreak(AText: WideString): Boolean;
|
||||
function HasLineBreak(const AText: WideString): Boolean;
|
||||
begin
|
||||
Result := (pos(#10, AText) > 0) or (pos(#13, AText) > 0);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user