diff options
author | Marius Storm-Olsen <marius@trolltech.com> | 2009-07-01 09:50:26 (GMT) |
---|---|---|
committer | Marius Storm-Olsen <marius@trolltech.com> | 2009-07-01 09:51:24 (GMT) |
commit | c447ce31632e25fdd40404cc96b6980aa0adcef8 (patch) | |
tree | e8ce13c7a83466e8027bae85e3a4e6f67a949623 /qmake/option.cpp | |
parent | 5ea86cfac34f65b2321ceeeb651e4e7099bf59a0 (diff) | |
download | Qt-c447ce31632e25fdd40404cc96b6980aa0adcef8.zip Qt-c447ce31632e25fdd40404cc96b6980aa0adcef8.tar.gz Qt-c447ce31632e25fdd40404cc96b6980aa0adcef8.tar.bz2 |
qmake: Remove QT_WA and non-Unicode code paths, dropping Win9x and NT support
Also, QString::fromUtf16() -> QString::fromWCharArray()
Merge-request: 604
Reviewed-by: Marius Storm-Olsen <marius@trolltech.com>
Diffstat (limited to 'qmake/option.cpp')
-rw-r--r-- | qmake/option.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/qmake/option.cpp b/qmake/option.cpp index 0e4a608..5f8c4f4 100644 --- a/qmake/option.cpp +++ b/qmake/option.cpp @@ -716,16 +716,9 @@ QString qmake_libraryInfoFile() { QString ret; #if defined( Q_OS_WIN ) - QFileInfo filePath; - QT_WA({ - unsigned short module_name[256]; - GetModuleFileNameW(0, reinterpret_cast<wchar_t *>(module_name), sizeof(module_name)); - filePath = QString::fromUtf16(module_name); - }, { - char module_name[256]; - GetModuleFileNameA(0, module_name, sizeof(module_name)); - filePath = QString::fromLocal8Bit(module_name); - }); + wchar_t module_name[MAX_PATH]; + GetModuleFileName(0, module_name, MAX_PATH); + QFileInfo filePath = QString::fromWCharArray(module_name); ret = filePath.filePath(); #else QString argv0 = QFile::decodeName(QByteArray(Option::application_argv0)); |