commit | 9fed90104ce08b85f7b7d2b9d707cb07562968ff | [log] [tgz] |
---|---|---|
author | cyy <cyyever@outlook.com> | Wed Jan 16 14:43:51 2019 +0800 |
committer | cyy <cyyever@outlook.com> | Tue Jan 22 10:38:15 2019 +0800 |
tree | 6553e739ec1f08a1f2a2c5e75a4074e12ac7d43b | |
parent | f7a4ead00d7988e76d2a22758f9e674644582620 [diff] [blame] |
fix static analyzer warings
diff --git a/lib/cpp/test/AllProtocolTests.tcc b/lib/cpp/test/AllProtocolTests.tcc index a7eab07..80a4ea0 100644 --- a/lib/cpp/test/AllProtocolTests.tcc +++ b/lib/cpp/test/AllProtocolTests.tcc
@@ -216,7 +216,7 @@ testMessage<TProto>(); printf("%s => OK\n", protoname); - } catch (TException e) { + } catch (const TException &e) { THRIFT_SNPRINTF(errorMessage, ERR_LEN, "%s => Test FAILED: %s", protoname, e.what()); throw TException(errorMessage); }