diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2014-09-07 21:22:04 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2014-09-12 09:57:26 +0200 |
commit | 699df74197dddf2feb2d469009e2794e012e9109 (patch) | |
tree | 094cb6f397565d068ad08bb80231690d319aec3c /src/corelib/plugin | |
parent | bb56586e32677ee9be23bffa4f3cc9a913ef192f (diff) |
QLibrary: use qEnvironmentVariableIntValue()
It doesn't allocate memory, so cannot throw and is a lot faster
than qgetenv().
Change-Id: I8d440619edfbd90045564e1f92676f1e1f87e136
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/plugin')
-rw-r--r-- | src/corelib/plugin/qlibrary.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/plugin/qlibrary.cpp b/src/corelib/plugin/qlibrary.cpp index 8af38acf51..df6b0a62d6 100644 --- a/src/corelib/plugin/qlibrary.cpp +++ b/src/corelib/plugin/qlibrary.cpp @@ -1131,7 +1131,7 @@ bool qt_debug_component() { static int debug_env = -1; if (debug_env == -1) - debug_env = QT_PREPEND_NAMESPACE(qgetenv)("QT_DEBUG_PLUGINS").toInt(); + debug_env = QT_PREPEND_NAMESPACE(qEnvironmentVariableIntValue)("QT_DEBUG_PLUGINS"); return debug_env != 0; } |