VirtualBox

Changeset 98264 in vbox for trunk/src


Ignore:
Timestamp:
Jan 24, 2023 9:12:26 AM (2 years ago)
Author:
vboxsync
Message:

iprt/cpp/xml.h,Main: Added EIPRTFailure::getStatus() as an alternative to rc() to avoid having scm getting upset about ambigous 'rc' term. bugref:10223

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r98263 r98264  
    62606260        if (FAILED(autoVMCaller.hrc()))
    62616261        {
    6262             LogFlowThisFunc(("Detach request ignored (mMachineState=%d).\n",
    6263                               mMachineState));
     6262            LogFlowThisFunc(("Detach request ignored (mMachineState=%d).\n", mMachineState));
    62646263            return autoVMCaller.hrc();
    62656264        }
  • trunk/src/VBox/Main/src-server/DHCPServerImpl.cpp

    r98262 r98264  
    10061006        catch (const xml::EIPRTFailure &e)
    10071007        {
    1008             vrc = e.rc();
     1008            vrc = e.getStatus();
    10091009            LogThisFunc(("caught xml::EIPRTFailure: rc=%Rrc (attempt %u, msg=%s)\n", vrc, uReadAttempt, e.what()));
    10101010            if (   (   vrc == VERR_FILE_NOT_FOUND
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r98262 r98264  
    608608            // only if the main settings file does not exist, create it,
    609609            // if there's something more serious, then do fail!
    610             if (e.rc() == VERR_FILE_NOT_FOUND)
     610            if (e.getStatus() == VERR_FILE_NOT_FOUND)
    611611                fCreate = true;
    612612            else
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