ocomponentenumeration.cxx (07a3d7f1) ocomponentenumeration.cxx (2e3a1b6e)
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

--- 152 unchanged lines hidden (view full) ---

161//*****************************************************************************************************************
162// proteced method
163//*****************************************************************************************************************
164void OComponentEnumeration::impl_resetObject()
165{
166 // Attention:
167 // Write this for multiple calls - NOT AT THE SAME TIME - but for more then one call again)!
168 // It exist two ways to call this method. From destructor and from disposing().
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

--- 152 unchanged lines hidden (view full) ---

161//*****************************************************************************************************************
162// proteced method
163//*****************************************************************************************************************
164void OComponentEnumeration::impl_resetObject()
165{
166 // Attention:
167 // Write this for multiple calls - NOT AT THE SAME TIME - but for more then one call again)!
168 // It exist two ways to call this method. From destructor and from disposing().
169 // I can't say, which one is the first. Normaly the disposing-call - but other way ....
169 // I can't say, which one is the first. Normally the disposing-call - but other way ....
170
171 // Delete list of components.
172 m_seqComponents.realloc( 0 );
173 // Reset position in list.
170
171 // Delete list of components.
172 m_seqComponents.realloc( 0 );
173 // Reset position in list.
174 // The list has no elements anymore. m_nPosition is normaly the current position in list for nextElement!
174 // The list has no elements anymore. m_nPosition is normally the current position in list for nextElement!
175 // But a position of 0 in a list of 0 items is an invalid state. This constellation can't work in future.
176 // End of enumeration is arrived!
177 // (see hasMoreElements() for more details...)
178 m_nPosition = 0 ;
179}
180
181//_________________________________________________________________________________________________________________
182// debug methods

--- 51 unchanged lines hidden ---
175 // But a position of 0 in a list of 0 items is an invalid state. This constellation can't work in future.
176 // End of enumeration is arrived!
177 // (see hasMoreElements() for more details...)
178 m_nPosition = 0 ;
179}
180
181//_________________________________________________________________________________________________________________
182// debug methods

--- 51 unchanged lines hidden ---