Pārlūkot izejas kodu

Catch exception by reference instead of by value.

adeniz_1
Alban Deniz pirms 11 mēnešiem
vecāks
revīzija
9100c75356
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      main.cpp

+ 1
- 1
main.cpp Parādīt failu

@@ -89,7 +89,7 @@ int main( int argc, char* argv[] ) {
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;
return ERROR_RULE_DATA;

Notiek ielāde…
Atcelt
Saglabāt