mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 16:00:23 +02:00
qt, qt5: fix uninitialized result in TQtComboBox.getText
git-svn-id: trunk@55043 -
This commit is contained in:
parent
3dbd19358b
commit
675c59e5e6
@ -11279,6 +11279,7 @@ end;
|
||||
|
||||
function TQtComboBox.getText: WideString;
|
||||
begin
|
||||
Result := '';
|
||||
QComboBox_currentText(QComboBoxH(Widget), @Result);
|
||||
if FOwnerDrawn and (FLineEdit = nil) and
|
||||
(Result = '') and (Result <> FText) then
|
||||
|
@ -11248,6 +11248,7 @@ end;
|
||||
|
||||
function TQtComboBox.getText: WideString;
|
||||
begin
|
||||
Result := '';
|
||||
QComboBox_currentText(QComboBoxH(Widget), @Result);
|
||||
if FOwnerDrawn and (FLineEdit = nil) and
|
||||
(Result = '') and (Result <> FText) then
|
||||
|
Loading…
Reference in New Issue
Block a user