VirtualBox

Ignore:
Timestamp:
Jul 8, 2018 1:58:59 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123528
Message:

VBoxManage: XPCOM/C++ enum exorcism. Found a enum type mismatch in handleCloneMedium and fixed it as best I could.

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageAppliance.cpp

    r72823 r72976  
    914914                            break;
    915915                        case VirtualSystemDescriptionType_Ignore:
     916#ifdef VBOX_WITH_XPCOM_CPP_ENUM_HACK
     917                        case VirtualSystemDescriptionType_32BitHack:
     918#endif
    916919                            break;
    917920                    }
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp

    r72956 r72976  
    911911    if (!pszDst)
    912912        return errorSyntax(USAGE_CLONEMEDIUM, "Mandatory output file parameter missing");
    913     if (fExisting && (!format.isEmpty() || enmMediumVariant != MediumType_Normal))
     913    if (fExisting && (!format.isEmpty() || enmMediumVariant != MediumVariant_Standard))
    914914        return errorSyntax(USAGE_CLONEMEDIUM, "Specified options which cannot be used with --existing");
    915915
     
    12371237                pszState = "deleting";
    12381238                break;
     1239#ifdef VBOX_WITH_XPCOM_CPP_ENUM_HACK
     1240            case MediumState_32BitHack: break; /* Shut up compiler warnings. */
     1241#endif
    12391242        }
    12401243        RTPrintf("State:          %s\n", pszState);
     
    12811284                typeStr = "multiattach";
    12821285                break;
     1286#ifdef VBOX_WITH_XPCOM_CPP_ENUM_HACK
     1287            case MediumType_32BitHack: break; /* Shut up compiler warnings. */
     1288#endif
    12831289        }
    12841290        RTPrintf("Type:           %s\n", typeStr);
     
    20252031     * Make sure a medium was specified already.
    20262032     */
    2027     if (pCommonOpts->enmDeviceType == MEDIUMCATEGORY_NONE)
     2033    if (pCommonOpts->enmDeviceType == DeviceType_Null)
    20282034        return errorSyntax("No medium specified!");
    20292035
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r72919 r72976  
    271271 * @param   enmType         Bandwidth control group type.
    272272 */
    273 inline const char * bwGroupTypeToString(BandwidthGroupType_T enmType)
     273static const char * bwGroupTypeToString(BandwidthGroupType_T enmType)
    274274{
    275275    switch (enmType)
     
    278278        case BandwidthGroupType_Disk:    return "Disk";
    279279        case BandwidthGroupType_Network: return "Network";
     280#ifdef VBOX_WITH_XPCOM_CPP_ENUM_HACK
     281        case BandwidthGroupType_32BitHack: break; /* Shut up compiler warnings. */
     282#endif
    280283    }
    281284    return "unknown";
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp

    r69500 r72976  
    5353        case HostNetworkInterfaceMediumType_SLIP: return "SLIP";
    5454        case HostNetworkInterfaceMediumType_Unknown: return "Unknown";
     55#ifdef VBOX_WITH_XPCOM_CPP_ENUM_HACK
     56        case HostNetworkInterfaceMediumType_32BitHack: break; /* Shut up compiler warnings. */
     57#endif
    5558    }
    5659    return "unknown";
     
    6467        case HostNetworkInterfaceStatus_Down: return "Down";
    6568        case HostNetworkInterfaceStatus_Unknown: return "Unknown";
     69#ifdef VBOX_WITH_XPCOM_CPP_ENUM_HACK
     70        case HostNetworkInterfaceStatus_32BitHack: break; /* Shut up compiler warnings. */
     71#endif
    6672    }
    6773    return "unknown";
     
    8288        case DeviceType_SharedFolder:   return "SharedFolder";
    8389        case DeviceType_Graphics3D:     return "Graphics3D";
     90#ifdef VBOX_WITH_XPCOM_CPP_ENUM_HACK
     91        case DeviceType_32BitHack: break; /* Shut up compiler warnings. */
     92#endif
    8493    }
    8594    return "Unknown";
     
    381390                    case DataType_Int8: RTPrintf("byte"); break;
    382391                    case DataType_String: RTPrintf("string"); break;
     392#ifdef VBOX_WITH_XPCOM_CPP_ENUM_HACK
     393                    case DataType_32BitHack: break; /* Shut up compiler warnings. */
     394#endif
    383395                }
    384396                RTPrintf(" flags=%#04x", propertyFlags[j]);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette