VirtualBox

Changeset 103705 in vbox


Ignore:
Timestamp:
Mar 6, 2024 3:26:38 PM (9 months ago)
Author:
vboxsync
Message:

FE/Qt: Get rid of few more iprt includes, s.a. r162071.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/QIWithRestorableGeometry.h

    r103704 r103705  
    4747#endif
    4848
    49 /* Other VBox includes: */
    50 #ifdef VBOX_WS_MAC
    51 # include "iprt/cpp/utils.h" // for unconst stuff
    52 #endif
    5349
    5450/** Template with geometry saving/restoring capabilities. */
     
    138134
    139135    /** Returns whether the window is currently maximized. */
    140     bool isCurrentlyMaximized() const
     136    bool isCurrentlyMaximized()
    141137    {
    142138#ifdef VBOX_WS_MAC
    143         return ::darwinIsWindowMaximized(unconst(this));
     139        return ::darwinIsWindowMaximized(this);
    144140#else
    145141        return this->isMaximized();
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.cpp

    r98103 r103705  
    4343#include "CSnapshot.h"
    4444
     45/* Other VBox includes: */
     46#include "iprt/cpp/utils.h" // for unconst stuff
     47
    4548QUuid   UIMedium::m_uNullID;
    4649QString UIMedium::m_sstrTable = QString("<table>%1</table>");
     
    434437        }
    435438    }
     439}
     440
     441KMediumState UIMedium::state(bool fNoDiffs /* = false */) const
     442{
     443    unconst(this)->checkNoDiffs(fNoDiffs);
     444    return fNoDiffs ? m_noDiffs.state : m_state;
     445}
     446
     447const COMResult &UIMedium::result(bool fNoDiffs /* = false */) const
     448{
     449    unconst(this)->checkNoDiffs(fNoDiffs);
     450    return fNoDiffs ? m_noDiffs.result : m_result;
    436451}
    437452
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.h

    r103704 r103705  
    4444#include "CMedium.h"
    4545
    46 /* Other VBox includes: */
    47 #include "iprt/cpp/utils.h" // for unconst stuff
    48 
    4946/** Storage medium cache used to
    5047  * override some UIMedium attributes in the
     
    147144      * @note  In "don't show diffs" mode, this method returns the worst state
    148145      *        (in terms of inaccessibility) detected on the given hard drive chain. */
    149     KMediumState state(bool fNoDiffs = false) const
    150     {
    151         unconst(this)->checkNoDiffs(fNoDiffs);
    152         return fNoDiffs ? m_noDiffs.state : m_state;
    153     }
     146    KMediumState state(bool fNoDiffs = false) const;
    154147
    155148    /** Returns the result of the last blockAndQueryState() call.
     
    158151      * @note  In "don't show diffs" mode, this method returns the worst result
    159152      *        (in terms of inaccessibility) detected on the given hard drive chain. */
    160     const COMResult& result(bool fNoDiffs = false) const
    161     {
    162         unconst(this)->checkNoDiffs(fNoDiffs);
    163         return fNoDiffs ? m_noDiffs.result : m_result;
    164     }
     153    const COMResult& result(bool fNoDiffs = false) const;
    165154
    166155    /** Returns the error result of the last blockAndQueryState() call. */
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