WARNING : setMatchingValue doesn't allocate the memory for the matching value but the destructor free the memory
| 68 | // WARNING : setMatchingValue doesn't allocate the memory for the matching value |
| 69 | // but the destructor free the memory |
| 70 | void CCallVariable::setMatchingValue(char* P_matchingVal) |
| 71 | { |
| 72 | M_type = E_VT_REGEXP; |
| 73 | if(M_matchingValue != nullptr) { |
| 74 | delete [] M_matchingValue; |
| 75 | } |
| 76 | M_matchingValue = P_matchingVal; |
| 77 | M_nbOfMatchingValue++; |
| 78 | } |
| 79 | |
| 80 | char* CCallVariable::getMatchingValue() |
| 81 | { |