summaryrefslogtreecommitdiffstats
path: root/src/tools/uic/option.h
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2017-07-31 17:20:53 +0300
committerAlexander Volkov <a.volkov@rusbitech.ru>2017-08-03 09:59:15 +0000
commitd12d2949d1e4ac08a47928ef27bc45459b3fb104 (patch)
tree1b5ce8a66074aadcc0c756bee1952bbc4359768a /src/tools/uic/option.h
parent8ba373361d79402be877cbd5d6dd8ec7de7d0e27 (diff)
uic: Add -no-stringliteral option
... and use it when building shared libraries and plugins. It prevents application crashes in cases when libraries and plugins are unloaded and their strings are still used by the main application. Task-number: QTBUG-51602 Change-Id: I4af79183f18c5ed6142d55af02a36fe4334f3fee Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/tools/uic/option.h')
-rw-r--r--src/tools/uic/option.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/uic/option.h b/src/tools/uic/option.h
index a5b14abc5f..c7278393fb 100644
--- a/src/tools/uic/option.h
+++ b/src/tools/uic/option.h
@@ -51,6 +51,7 @@ struct Option
unsigned int limitXPM_LineLength : 1;
unsigned int implicitIncludes: 1;
unsigned int idBased: 1;
+ unsigned int stringLiteral: 1;
Generator generator;
QString inputFile;
@@ -76,6 +77,7 @@ struct Option
limitXPM_LineLength(0),
implicitIncludes(1),
idBased(0),
+ stringLiteral(1),
generator(CppGenerator),
prefix(QLatin1String("Ui_"))
{ indent.fill(QLatin1Char(' '), 4); }