Changeset 100068 in vbox
- Timestamp:
- Jun 5, 2023 12:42:04 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 157755
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/VBoxDbgGui.cpp
r99853 r100068 299 299 strName = QString::fromUtf16((const ushort *)bstr); 300 300 #else 301 strName = QString::fromUtf16((c har16_t *)bstr);301 strName = QString::fromUtf16((const char16_t *)bstr); 302 302 #endif 303 303 SysFreeString(bstr); -
trunk/src/VBox/Frontends/VirtualBox/src/globals/COMDefs.cpp
r99802 r100068 204 204 aVec.resize (static_cast <int> (aArr.size())); 205 205 for (int i = 0; i < aVec.size(); ++ i) 206 #ifndef VBOX_IS_QT6_OR_LATER 206 207 aVec [i] = QString::fromUtf16 ((const ushort *)aArr [i]); 208 #else 209 aVec [i] = QString::fromUtf16 ((const char16_t *)aArr [i]); 210 #endif 207 211 } 208 212 … … 252 256 aVec.resize (static_cast <int> (aArr.size())); 253 257 for (int i = 0; i < aVec.size(); ++ i) 258 #ifndef VBOX_IS_QT6_OR_LATER 254 259 aVec [i] = QUuid(QString::fromUtf16 ((const ushort *)aArr [i])); 260 #else 261 aVec [i] = QUuid(QString::fromUtf16 ((const char16_t *)aArr [i])); 262 #endif 255 263 } 256 264 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/COMDefs.h
r99802 r100068 398 398 { 399 399 if (bstr) { 400 #ifndef VBOX_IS_QT6_OR_LATER 400 401 str = QString::fromUtf16((const ushort *)bstr); 402 #else 403 str = QString::fromUtf16((const char16_t *)bstr); 404 #endif 401 405 SysFreeString(bstr); 402 406 } … … 442 446 { 443 447 if (bstr) { 448 #ifndef VBOX_IS_QT6_OR_LATER 444 449 uuid = QUuid(QString::fromUtf16((const ushort *)bstr)); 450 #else 451 uuid = QUuid(QString::fromUtf16((const char16_t *)bstr)); 452 #endif 445 453 SysFreeString(bstr); 446 454 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIHostComboEditor.cpp
r100064 r100068 190 190 WCHAR wszKeyName[256]; 191 191 if (::GetKeyNameTextW(iScan, wszKeyName, RT_ELEMENTS(wszKeyName))) 192 #ifndef VBOX_IS_QT6_OR_LATER 192 193 strKeyName = QString::fromUtf16((const ushort *)wszKeyName); 194 #else 195 strKeyName = QString::fromUtf16((const char16_t *)wszKeyName); 196 #endif 193 197 else 194 198 {
Note:
See TracChangeset
for help on using the changeset viewer.