Changeset 561 for trunk/src/activeqt/container/qaxscript.cpp
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/activeqt/container/qaxscript.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information (qt-info@nokia.com) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation (qt-info@nokia.com) 5 6 ** 6 7 ** This file is part of the ActiveQt framework of the Qt Toolkit. … … 38 39 ****************************************************************************/ 39 40 40 #ifndef UNICODE41 #define UNICODE42 #endif43 44 41 #include "qaxscript.h" 45 42 … … 195 192 return E_POINTER; 196 193 197 QAxBase *object = script->findObject(QString::from Utf16((const ushort*)pstrName));194 QAxBase *object = script->findObject(QString::fromWCharArray(pstrName)); 198 195 if (!object) 199 196 return TYPE_E_ELEMENTNOTFOUND; … … 237 234 if (exception) 238 235 emit script->finished(exception->wCode, 239 QString::from Utf16((const ushort*)exception->bstrSource),240 QString::from Utf16((const ushort*)exception->bstrDescription),241 QString::from Utf16((const ushort*)exception->bstrHelpFile)236 QString::fromWCharArray(exception->bstrSource), 237 QString::fromWCharArray(exception->bstrDescription), 238 QString::fromWCharArray(exception->bstrHelpFile) 242 239 ); 243 240 return S_OK; … … 288 285 HRESULT hres = error->GetSourceLineText(&bstrLineText); 289 286 if (hres == S_OK) { 290 lineText = QString::from Utf16((const ushort*)bstrLineText);287 lineText = QString::fromWCharArray(bstrLineText); 291 288 SysFreeString(bstrLineText); 292 289 } … … 295 292 SysFreeString(exception.bstrHelpFile); 296 293 297 emit script->error(exception.wCode, QString::from Utf16((const ushort*)exception.bstrDescription), lineNumber, lineText);294 emit script->error(exception.wCode, QString::fromWCharArray(exception.bstrDescription), lineNumber, lineText); 298 295 299 296 return S_OK; … … 464 461 465 462 CLSID clsid; 466 HRESULT hres = CLSIDFromProgID(( WCHAR*)script_language.utf16(), &clsid);463 HRESULT hres = CLSIDFromProgID((wchar_t*)script_language.utf16(), &clsid); 467 464 if(FAILED(hres)) 468 465 return false; … … 610 607 return; 611 608 612 engine->AddNamedItem(( WCHAR*)name.utf16(), SCRIPTITEM_ISSOURCE|SCRIPTITEM_ISVISIBLE);609 engine->AddNamedItem((wchar_t*)name.utf16(), SCRIPTITEM_ISSOURCE|SCRIPTITEM_ISVISIBLE); 613 610 #endif 614 611 } … … 1174 1171 1175 1172 CLSID clsid; 1176 HRESULT hres = CLSIDFromProgID(( WCHAR*)name.utf16(), &clsid);1173 HRESULT hres = CLSIDFromProgID((wchar_t*)name.utf16(), &clsid); 1177 1174 if (hres != S_OK) 1178 1175 return false; … … 1204 1201 1205 1202 allFiles += QLatin1String(" *") + engine.extension; 1206 specialFiles += QLatin1String(";;") + engine.name + QLatin1String(" Files (*") + engine.extension + QLatin1 String(")");1207 } 1208 allFiles += QLatin1 String(")");1203 specialFiles += QLatin1String(";;") + engine.name + QLatin1String(" Files (*") + engine.extension + QLatin1Char(')'); 1204 } 1205 allFiles += QLatin1Char(')'); 1209 1206 1210 1207 return allFiles + specialFiles + QLatin1String(";;All Files (*.*)");
Note:
See TracChangeset
for help on using the changeset viewer.