VirtualBox

Changeset 94907 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
May 7, 2022 5:40:28 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
151314
Message:

Main/AutoCaller.h: Add convenience wrapper isNotOk(), bugref:10223

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/AutoCaller.h

    r93115 r94907  
    118118
    119119    /**
     120     * Returns |true| if |FAILED(rc())| is |true|, for convenience.
     121     * |true| means the number of callers was _not_ successfully increased.
     122     */
     123    bool isNotOk() const { return FAILED(mRC); }
     124
     125    /**
    120126     * Temporarily decreases the number of callers of the managed object.
    121127     * May only be called if #isOk() returns |true|. Note that #rc() will
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