소스 검색

Catch exception by reference instead of by value.

adeniz_1
Alban Deniz 11 달 전
부모
커밋
9100c75356
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      main.cpp

+ 1
- 1
main.cpp 파일 보기

@@ -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;

Loading…
취소
저장