MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / takeOwnership

Method takeOwnership

src/common/classes/stack.h:175–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173
174 public:
175 void takeOwnership (Stack<Object, Capacity>& s)
176 {
177 fb_assert(&getPool() == &s.getPool());
178 delete stk;
179 stk = s.stk;
180 s.stk = 0;
181
182 if (stk)
183 {
184 delete stk_cache;
185 stk_cache = 0;
186 }
187 }
188
189 // Push a element on the stack and pop when we go out of scope.
190 class AutoPushPop

Callers 1

StatementMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected