weak.cxx (9d7e27ac) | weak.cxx (796b7e2a) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 390 unchanged lines hidden (view full) --- 399} 400 401OWeakRefListener::~OWeakRefListener() SAL_THROW( () ) 402{ 403 try 404 { 405 if (m_XWeakConnectionPoint.is()) 406 { | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 390 unchanged lines hidden (view full) --- 399} 400 401OWeakRefListener::~OWeakRefListener() SAL_THROW( () ) 402{ 403 try 404 { 405 if (m_XWeakConnectionPoint.is()) 406 { |
407 acquire(); // dont die again | 407 acquire(); // don't die again |
408 m_XWeakConnectionPoint->removeReference((XReference*)this); 409 } 410 } 411 catch (RuntimeException &) { OSL_ASSERT( 0 ); } // assert here, but no unexpected() 412} 413 414// XInterface 415Any SAL_CALL OWeakRefListener::queryInterface( const Type & rType ) throw(RuntimeException) --- 134 unchanged lines hidden --- | 408 m_XWeakConnectionPoint->removeReference((XReference*)this); 409 } 410 } 411 catch (RuntimeException &) { OSL_ASSERT( 0 ); } // assert here, but no unexpected() 412} 413 414// XInterface 415Any SAL_CALL OWeakRefListener::queryInterface( const Type & rType ) throw(RuntimeException) --- 134 unchanged lines hidden --- |