VirtualBox

Changeset 75616 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 20, 2018 11:55:59 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9289: Extend DetailsElementType with Max value, allows to enumerate enum elements more abstract/easily.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h

    r75615 r75616  
    868868    DetailsElementType_SF,
    869869    DetailsElementType_UI,
    870     DetailsElementType_Description
     870    DetailsElementType_Description,
     871    DetailsElementType_Max
    871872};
    872873Q_DECLARE_METATYPE(DetailsElementType);
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsSet.cpp

    r74942 r75616  
    397397                break;
    398398            }
    399             case DetailsElementType_Invalid: AssertFailed(); break; /* Shut up, MSC! */
     399            default: AssertFailed(); break; /* Shut up, MSC! */
    400400        }
    401401    }
     
    448448                break;
    449449            }
    450             case DetailsElementType_Invalid: AssertFailed(); break; /* Shut up, MSC! */
     450            default: AssertFailed(); break; /* Shut up, MSC! */
    451451        }
    452452    }
     
    515515                break;
    516516            }
    517             case DetailsElementType_Invalid: AssertFailed(); break; /* Shut up, MSC! */
     517            default: AssertFailed(); break; /* Shut up, MSC! */
    518518        }
    519519    }
     
    640640        case DetailsElementType_UI:          return new UIDetailsElementUI(this, fOpen);
    641641        case DetailsElementType_Description: return new UIDetailsElementDescription(this, fOpen);
    642         case DetailsElementType_Invalid:     AssertFailed(); break; /* Shut up, MSC! */
     642        default:                             AssertFailed(); break; /* Shut up, MSC! */
    643643    }
    644644    return 0;
Note: See TracChangeset for help on using the changeset viewer.

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