Changeset 25018 in vbox
- Timestamp:
- Nov 26, 2009 3:31:22 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r24908 r25018 775 775 QString VBoxGlobal::brandingGetKey (QString aKey) 776 776 { 777 QSettings s ettings(mBrandingConfig, QSettings::IniFormat);778 return s ettings.value(QString("%1").arg(aKey)).toString();777 QSettings s(mBrandingConfig, QSettings::IniFormat); 778 return s.value(QString("%1").arg(aKey)).toString(); 779 779 } 780 780 … … 1449 1449 QString VBoxGlobal::details (const CUSBDevice &aDevice) const 1450 1450 { 1451 QString details;1451 QString sDetails; 1452 1452 QString m = aDevice.GetManufacturer().trimmed(); 1453 1453 QString p = aDevice.GetProduct().trimmed(); 1454 1454 if (m.isEmpty() && p.isEmpty()) 1455 1455 { 1456 details =1456 sDetails = 1457 1457 tr ("Unknown device %1:%2", "USB device details") 1458 1458 .arg (QString().sprintf ("%04hX", aDevice.GetVendorId())) … … 1462 1462 { 1463 1463 if (p.toUpper().startsWith (m.toUpper())) 1464 details = p;1464 sDetails = p; 1465 1465 else 1466 details = m + " " + p;1466 sDetails = m + " " + p; 1467 1467 } 1468 1468 ushort r = aDevice.GetRevision(); 1469 1469 if (r != 0) 1470 details += QString().sprintf (" [%04hX]", r);1471 1472 return details.trimmed();1470 sDetails += QString().sprintf (" [%04hX]", r); 1471 1472 return sDetails.trimmed(); 1473 1473 } 1474 1474 … … 2422 2422 if (aMedium.type() == VBoxDefs::MediumType_HardDisk) 2423 2423 { 2424 VBoxMediaList::iterator parent = mMediaList.end();2424 VBoxMediaList::iterator itParent = mMediaList.end(); 2425 2425 2426 2426 for (; it != mMediaList.end(); ++ it) … … 2432 2432 break; 2433 2433 2434 if (aMedium.parent() != NULL && parent == mMediaList.end())2434 if (aMedium.parent() != NULL && itParent == mMediaList.end()) 2435 2435 { 2436 2436 if (&*it == aMedium.parent()) 2437 parent = it;2437 itParent = it; 2438 2438 } 2439 2439 else … … 2441 2441 /* break if met a parent's sibling (will insert before it) */ 2442 2442 if (aMedium.parent() != NULL && 2443 (*it).parent() == (* parent).parent())2443 (*it).parent() == (*itParent).parent()) 2444 2444 break; 2445 2445 … … 2451 2451 } 2452 2452 2453 AssertReturnVoid (aMedium.parent() == NULL || parent != mMediaList.end());2453 AssertReturnVoid (aMedium.parent() == NULL || itParent != mMediaList.end()); 2454 2454 } 2455 2455 else … … 2526 2526 #endif 2527 2527 2528 VBoxMedium *p arent = (*it).parent();2528 VBoxMedium *pParent = (*it).parent(); 2529 2529 2530 2530 /* remove the medium from the list to keep it in sync with the server "for … … 2536 2536 /* also emit the parent update signal because some attributes like 2537 2537 * isReadOnly() may have been changed after child removal */ 2538 if (p arent != NULL)2539 { 2540 p arent->refresh();2541 emit mediumUpdated (*p arent);2538 if (pParent != NULL) 2539 { 2540 pParent->refresh(); 2541 emit mediumUpdated (*pParent); 2542 2542 } 2543 2543 } … … 4240 4240 if (aEvent->type() == QEvent::User) 4241 4241 { 4242 ServiceEvent * event = static_cast <ServiceEvent*> (aEvent);4243 mResult = event->result();4244 event->accept();4242 ServiceEvent *pEvent = static_cast <ServiceEvent*> (aEvent); 4243 mResult = pEvent->result(); 4244 pEvent->accept(); 4245 4245 quit(); 4246 4246 return true; … … 4257 4257 public: 4258 4258 4259 ServiceServer (ServiceClient &aClient, const QString & aURL)4260 : mClient (aClient), mURL ( aURL) {}4259 ServiceServer (ServiceClient &aClient, const QString &sURL) 4260 : mClient (aClient), mURL (sURL) {} 4261 4261 4262 4262 private: … … 4571 4571 /* Load the customized language as early as possible to get possible error 4572 4572 * messages translated */ 4573 QString languageId = gset.languageId();4574 if (! languageId.isNull())4575 loadLanguage ( languageId);4573 QString sLanguageId = gset.languageId(); 4574 if (!sLanguageId.isNull()) 4575 loadLanguage (sLanguageId); 4576 4576 4577 4577 retranslateUi(); … … 4877 4877 if (mDbgEnabled) 4878 4878 { 4879 int rc = SUPR3HardenedLdrLoadAppPriv("VBoxDbg", &mhVBoxDbg);4880 if (RT_FAILURE( rc))4879 int vrc = SUPR3HardenedLdrLoadAppPriv("VBoxDbg", &mhVBoxDbg); 4880 if (RT_FAILURE(vrc)) 4881 4881 { 4882 4882 mhVBoxDbg = NIL_RTLDRMOD;
Note:
See TracChangeset
for help on using the changeset viewer.

