Changeset 23381 in vbox for trunk/src/VBox
- Timestamp:
- Sep 28, 2009 2:01:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r23223 r23381 624 624 /* Custom VESA mode list */ 625 625 unsigned cModes = 0; 626 for (unsigned iMode = 1; iMode <= 16; iMode++)626 for (unsigned iMode = 1; iMode <= 16; ++iMode) 627 627 { 628 628 char szExtraDataKey[sizeof("CustomVideoModeXX")]; … … 633 633 rc = CFGMR3InsertStringW(pCfg, szExtraDataKey, str); RC_CHECK(); 634 634 STR_FREE(); 635 cModes++;635 ++cModes; 636 636 } 637 637 STR_FREE(); … … 744 744 } 745 745 746 for (uint32_t j = 0; j < 4; j++)746 for (uint32_t j = 0; j < 4; ++j) 747 747 { 748 748 static const char *s_apszConfig[4] = … … 1024 1024 rc = CFGMR3InsertNode(pDevices, "virtio-net", &pDevVirtioNet); RC_CHECK(); 1025 1025 #endif /* VBOX_WITH_VIRTIO */ 1026 for (ULONG ulInstance = 0; ulInstance < SchemaDefs::NetworkAdapterCount; ulInstance++)1026 for (ULONG ulInstance = 0; ulInstance < SchemaDefs::NetworkAdapterCount; ++ulInstance) 1027 1027 { 1028 1028 ComPtr<INetworkAdapter> networkAdapter; … … 1138 1138 memset(&Mac, 0, sizeof(Mac)); 1139 1139 char *pMac = (char*)&Mac; 1140 for (uint32_t i = 0; i < 6; i++)1140 for (uint32_t i = 0; i < 6; ++i) 1141 1141 { 1142 1142 char c1 = *macStr++ - '0'; … … 1183 1183 */ 1184 1184 rc = CFGMR3InsertNode(pDevices, "serial", &pDev); RC_CHECK(); 1185 for (ULONG ulInstance = 0; ulInstance < SchemaDefs::SerialPortCount; ulInstance++)1185 for (ULONG ulInstance = 0; ulInstance < SchemaDefs::SerialPortCount; ++ulInstance) 1186 1186 { 1187 1187 ComPtr<ISerialPort> serialPort; … … 1241 1241 */ 1242 1242 rc = CFGMR3InsertNode(pDevices, "parallel", &pDev); RC_CHECK(); 1243 for (ULONG ulInstance = 0; ulInstance < SchemaDefs::ParallelPortCount; ulInstance++)1243 for (ULONG ulInstance = 0; ulInstance < SchemaDefs::ParallelPortCount; ++ulInstance) 1244 1244 { 1245 1245 ComPtr<IParallelPort> parallelPort; … … 1702 1702 offically like this but wtf) */ 1703 1703 *(char*)pszCFGMValueName = '\0'; 1704 pszCFGMValueName++;1704 ++pszCFGMValueName; 1705 1705 1706 1706 /* does the node already exist? */ … … 1852 1852 } 1853 1853 1854 for (ULONG pos = 1; pos <= SchemaDefs::MaxBootPosition; pos ++)1854 for (ULONG pos = 1; pos <= SchemaDefs::MaxBootPosition; ++pos) 1855 1855 { 1856 1856 hrc = pMachine->GetBootOrder(pos, &bootDevice); H();
Note:
See TracChangeset
for help on using the changeset viewer.