gridctrl.cxx (d92770c0) | gridctrl.cxx (fefd526c) |
---|---|
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 --- 3828 unchanged lines hidden (view full) --- 3837} 3838 3839//------------------------------------------------------------------------------ 3840void DbGridControl::disposing(sal_uInt16 _nId, const EventObject& /*_rEvt*/) 3841{ 3842 if (_nId == 0) 3843 { // the seek cursor is being disposed 3844 ::osl::MutexGuard aGuard(m_aAdjustSafety); | 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 --- 3828 unchanged lines hidden (view full) --- 3837} 3838 3839//------------------------------------------------------------------------------ 3840void DbGridControl::disposing(sal_uInt16 _nId, const EventObject& /*_rEvt*/) 3841{ 3842 if (_nId == 0) 3843 { // the seek cursor is being disposed 3844 ::osl::MutexGuard aGuard(m_aAdjustSafety); |
3845 setDataSource(NULL,0); // our clone was disposed so we set our datasource to null to avoid later acces to it | 3845 setDataSource(NULL,0); // our clone was disposed so we set our datasource to null to avoid later access to it |
3846 if (m_nAsynAdjustEvent) 3847 { 3848 RemoveUserEvent(m_nAsynAdjustEvent); 3849 m_nAsynAdjustEvent = 0; 3850 } 3851 } 3852} 3853// ----------------------------------------------------------------------------- --- 48 unchanged lines hidden --- | 3846 if (m_nAsynAdjustEvent) 3847 { 3848 RemoveUserEvent(m_nAsynAdjustEvent); 3849 m_nAsynAdjustEvent = 0; 3850 } 3851 } 3852} 3853// ----------------------------------------------------------------------------- --- 48 unchanged lines hidden --- |