瀏覽代碼

Catch exception by reference instead of by value.

adeniz_1
Alban Deniz 1 年之前
父節點
當前提交
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…
取消
儲存