Browse Source

Catch exception by reference instead of by value.

adeniz_1
Alban Deniz 1 year ago
parent
commit
9100c75356
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      main.cpp

+ 1
- 1
main.cpp View File

RuleBase.Load(RuleFileString); RuleBase.Load(RuleFileString);
} }


catch(TokenMatrix::BadAllocation) { // If we can't allocate memory report it.
catch(TokenMatrix::BadAllocation &) { // If we can't allocate memory report it.


cerr << "snf2check: " << License << " ERROR_RULE_DATA!" << endl; cerr << "snf2check: " << License << " ERROR_RULE_DATA!" << endl;
return ERROR_RULE_DATA; return ERROR_RULE_DATA;

Loading…
Cancel
Save