From c95a95306190bff15138b013dde33d98eab34d8d Mon Sep 17 00:00:00 2001 From: Andreas Holzammer Date: Wed, 8 Feb 2012 14:50:28 +0100 Subject: [PATCH] Use qgetenv instead of getenv. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Use the Qt Version because platforms like Windows CE don't support getenv. Change-Id: I95ca4d7194e09889ab228af80e679a3c34479e41 Reviewed-by: Miikka Heikkinen Reviewed-by: Samuel Rødal --- src/platformsupport/inputcontext/qplatforminputcontextfactory_qpa.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platformsupport/inputcontext/qplatforminputcontextfactory_qpa.cpp b/src/platformsupport/inputcontext/qplatforminputcontextfactory_qpa.cpp index e7fdf43..9e38e4c 100644 --- a/src/platformsupport/inputcontext/qplatforminputcontextfactory_qpa.cpp +++ b/src/platformsupport/inputcontext/qplatforminputcontextfactory_qpa.cpp @@ -82,7 +82,7 @@ QPlatformInputContext *QPlatformInputContextFactory::create() { QPlatformInputContext *ic = 0; - QString icString = QString::fromLatin1(getenv("QT_IM_MODULE")); + QString icString = QString::fromLatin1(qgetenv("QT_IM_MODULE")); ic = create(icString); if (ic && ic->isValid()) -- 2.7.4