| 50 | } |
| 51 | |
| 52 | template <typename T> static void |
| 53 | deleteBuffers(T *A, T *B, T *C=NULL, T *D=NULL, T *E=NULL, T *F=NULL) |
| 54 | { |
| 55 | if(A != NULL) |
| 56 | { |
| 57 | delete[] A; |
| 58 | } |
| 59 | if(B != NULL) |
| 60 | { |
| 61 | delete[] B; |
| 62 | } |
| 63 | if(C != NULL) |
| 64 | { |
| 65 | delete[] C; |
| 66 | } |
| 67 | if(D != NULL) |
| 68 | { |
| 69 | delete[] D; |
| 70 | } |
| 71 | if(E != NULL) |
| 72 | { |
| 73 | delete[] E; |
| 74 | } |
| 75 | if(F != NULL) |
| 76 | { |
| 77 | delete[] F; |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | // type T1 indicates the basic type, |
| 82 | // while T2 indicates type of buffer C. C is not complex for complex types |
nothing calls this directly
no outgoing calls
no test coverage detected