Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool FunctionA (const ObjectA& a)
- {
- ... some code ...
- static const ObcjectB& b = getObjectBFromSomewhere(...);
- ... code heavily reliant on b ...
- return boolean_val;
- }
- bool FunctionB (const ObjectA& a)
- {
- bool b = FunctionA(a);
- ... some code ...
- static const ObcjectB& b = getObjectBFromSomewhere(...);
- ... more code
- return b;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement