| 842 | } |
| 843 | |
| 844 | void TriValueBinding::SetDestinationObject( IRoot* destinationObject ) |
| 845 | { |
| 846 | if( ITriReroutablePtr rp = BlueCastPtr( GetCurrentDestinationObject() ) ) |
| 847 | { |
| 848 | rp->UnregisterBinding( this ); |
| 849 | } |
| 850 | |
| 851 | if( m_isWeak ) |
| 852 | { |
| 853 | m_destinationObjectWeak = destinationObject; |
| 854 | } |
| 855 | else |
| 856 | { |
| 857 | m_destinationObject = destinationObject; |
| 858 | } |
| 859 | Initialize(); |
| 860 | } |
no test coverage detected