~ubuntu-branches/ubuntu/karmic/aspectc++/karmic

« back to all changes in this revision

Viewing changes to Puma/gen-release/step1/inc/Puma/PtrStack.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2006-06-03 13:14:38 UTC
  • Revision ID: james.westby@ubuntu.com-20060603131438-76kcwaewxnwlvkad
Tags: 0.99+1.0pre3-2
* Fix some more cleanup() functions, which can go frenzy on at least amd64
  (applied upstread)
* Fix description, thanks to Simon Waters (Closes: #362738)
* reweave Puma to make the patch enabling the build with gcc-4.1 actually
  active (Closes: #357901, this time for real)

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
template <class T>
119
119
inline void PtrStack<T>::Pop () { 
120
120
  if (Length () > 0)
121
 
    remove (Index ()); 
 
121
    Array<T*>::remove (Index ()); 
122
122
}
123
123
 
124
124
template <class T>
149
149
inline void PtrStack<T>::Destroy () { 
150
150
  while (Length () > 0) {
151
151
    Delete ();
152
 
    remove (Index ()); // Pop()
 
152
    Array<T*>::remove (Index ()); // Pop()
153
153
  }
154
154
  Forget (); 
155
155
}
156
156
 
157
157
template <class T>
158
158
inline void PtrStack<T>::Remove () {
159
 
  remove (Index ()); // Same as Pop()
 
159
  Array<T*>::remove (Index ()); // Same as Pop()
160
160
}
161
161
  
162
162
template <class T>