summaryrefslogtreecommitdiffstats
path: root/qmake/project.cpp
diff options
context:
space:
mode:
authorMarius Storm-Olsen <marius@trolltech.com>2009-07-01 09:50:26 (GMT)
committerMarius Storm-Olsen <marius@trolltech.com>2009-07-01 09:51:24 (GMT)
commitc447ce31632e25fdd40404cc96b6980aa0adcef8 (patch)
treee8ce13c7a83466e8027bae85e3a4e6f67a949623 /qmake/project.cpp
parent5ea86cfac34f65b2321ceeeb651e4e7099bf59a0 (diff)
downloadQt-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/project.cpp')
-rw-r--r--qmake/project.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qmake/project.cpp b/qmake/project.cpp
index 047a5e3..704d8a6 100644
--- a/qmake/project.cpp
+++ b/qmake/project.cpp
@@ -3117,9 +3117,9 @@ QStringList &QMakeProject::values(const QString &_var, QMap<QString, QStringList
ret = "Windows";
} else if(type == "name") {
DWORD name_length = 1024;
- TCHAR name[1024];
- if(GetComputerName(name, &name_length))
- ret = QString::fromUtf16((ushort*)name, name_length);
+ wchar_t name[1024];
+ if (GetComputerName(name, &name_length))
+ ret = QString::fromWCharArray(name);
} else if(type == "version" || type == "version_string") {
QSysInfo::WinVersion ver = QSysInfo::WindowsVersion;
if(type == "version")