Changeset 60877 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 7, 2016 6:28:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/COMDefs.h
r60876 r60877 643 643 { 644 644 detach(); 645 #ifdef DEBUG645 #ifdef RT_STRICT 646 646 mDead = true; 647 647 #endif … … 685 685 void attach(OI *aIface) 686 686 { 687 #ifdef DEBUG688 687 Assert(!mDead); 689 #endif690 688 /* be aware of self assignment */ 691 689 I* amIface = ptr(); … … 709 707 void attach(I *aIface) 710 708 { 711 #ifdef DEBUG712 709 Assert(!mDead); 713 #endif714 710 /* be aware of self assignment */ 715 711 this->addref((IUnknown*)aIface); … … 722 718 void detach() 723 719 { 724 #ifdef DEBUG725 720 Assert(!mDead); 726 #endif727 721 this->release((IUnknown*)ptr()); 728 722 setPtr(NULL); … … 732 726 bool isNull() const 733 727 { 734 #ifdef DEBUG735 728 Assert(!mDead); 736 #endif737 729 return mIface == NULL; 738 730 } … … 741 733 bool isNotNull() const 742 734 { 743 #ifdef DEBUG744 735 Assert(!mDead); 745 #endif746 736 return mIface != NULL; 747 737 } … … 791 781 bool operator!=(const CInterface &that) const { return ptr() != that.ptr(); } 792 782 793 I* ptr() const 794 { 795 #ifdef DEBUG 796 Assert(!mDead); 797 #endif 798 799 return mIface; 783 I *ptr() const 784 { 785 Assert(!mDead); 786 return mIface; 800 787 } 801 788 802 789 void setPtr(I* aObj) const 803 790 { 804 #ifdef DEBUG 805 Assert(!mDead); 806 #endif 807 mIface = aObj; 791 Assert(!mDead); 792 mIface = aObj; 808 793 } 809 794 810 795 private: 811 #ifdef DEBUG796 #ifdef RT_STRICT 812 797 bool mDead; 813 798 #endif … … 817 802 { 818 803 mIface = NULL; 819 #ifdef DEBUG804 #ifdef RT_STRICT 820 805 mDead = false; 821 806 #endif
Note:
See TracChangeset
for help on using the changeset viewer.