From 082eb5b733b5725687693c749efcedc7346fdd83 Mon Sep 17 00:00:00 2001 From: Laurent Carlier Date: Thu, 31 Oct 2019 12:11:36 +0100 Subject: [PATCH] Fix compiler warning in gb.qt5 about deprecation of QString::null QString::null is deprecated since Qt 5.9 Use QString() instead for both qt4 and qt5 components as it constructs a null string. --- gb.qt4/src/CDialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gb.qt4/src/CDialog.cpp b/gb.qt4/src/CDialog.cpp index 12259e957..2a0054fe5 100644 --- a/gb.qt4/src/CDialog.cpp +++ b/gb.qt4/src/CDialog.cpp @@ -273,7 +273,7 @@ BEGIN_METHOD(Dialog_OpenFile, GB_BOOLEAN multi) } } - dialog_title = QString::null; + dialog_title = QString(); END_METHOD @@ -292,7 +292,7 @@ BEGIN_METHOD_VOID(Dialog_SaveFile) GB.ReturnBoolean(false); } - dialog_title = QString::null; + dialog_title = QString(); END_METHOD @@ -311,7 +311,7 @@ BEGIN_METHOD_VOID(Dialog_SelectDirectory) GB.ReturnBoolean(false); } - dialog_title = QString::null; + dialog_title = QString(); END_METHOD