Commit cbef1e2d authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 6

Mark a couple of local constants as static constexpr

Summary: Because they aren't captured, and thus aren't accessible, in the callback used further on in the function.

Reviewed By: yfeldblum

Differential Revision: D3600874

fbshipit-source-id: 699b3d4caa0a310b1ccc7810d670671850f4366b
parent e21b7273
...@@ -351,8 +351,8 @@ TEST_F(AsyncSSLSocketWriteTest, write_with_eor3) { ...@@ -351,8 +351,8 @@ TEST_F(AsyncSSLSocketWriteTest, write_with_eor3) {
int n = 1; int n = 1;
auto vec = makeVec({1600}); auto vec = makeVec({1600});
int pos = 0; int pos = 0;
const size_t initAppBytesWritten = 500; static constexpr size_t initAppBytesWritten = 500;
const size_t appEor = initAppBytesWritten + 1600; static constexpr size_t appEor = initAppBytesWritten + 1600;
sock_->setAppBytesWritten(initAppBytesWritten); sock_->setAppBytesWritten(initAppBytesWritten);
sock_->setEorTracking(true); sock_->setEorTracking(true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment