VirtualBox

Ignore:
Timestamp:
Apr 18, 2016 3:17:27 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: ​​​​bugref:8308: Implementing passive event handler (part 05): Add some error checking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.cpp

    r60421 r60544  
    181181void UIMainEventListener::registerSource(const CEventSource &source, const CEventListener &listener)
    182182{
     183    /* Make sure source and listener are valid: */
     184    AssertReturnVoid(!source.isNull());
     185    AssertReturnVoid(!listener.isNull());
     186
    183187    /* Create thread for passed source: */
    184188    m_threads << new UIMainEventListeningThread(source, listener);
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