SHARE
TWEET

Untitled

a guest Feb 19th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void FunctionX(Obj * pObj)
  2. {
  3.    pObj->MemberQ->MemberW->MemberA.function1();
  4.    pObj->MemberQ->MemberW->MemberA.function2();
  5.    pObj->MemberQ->MemberW->MemberB.function1();
  6.    pObj->MemberQ->MemberW->MemberB.function2();
  7.    ..
  8.    pObj->MemberQ->MemberW->MemberZ.function1();
  9.    pObj->MemberQ->MemberW->MemberZ.function2();
  10. }
  11.  
  12. void FunctionY(Obj * pObj)
  13. {
  14.    W * localPtr = pObj->MemberQ->MemberW;
  15.    localPtr->MemberA.function1();
  16.    localPtr->MemberA.function2();
  17.    localPtr->MemberB.function1();
  18.    localPtr->MemberB.function2();
  19.    ...
  20.    localPtr->MemberZ.function1();
  21.    localPtr->MemberZ.function2();
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top