nghttpx: Use constexpr

This commit is contained in:
Tatsuhiro Tsujikawa 2017-03-15 23:12:50 +09:00
parent 20edd64301
commit 9cc223d419
2 changed files with 3 additions and 3 deletions

View File

@ -561,7 +561,7 @@ int Connection::check_http2_requirement() {
} }
namespace { namespace {
const size_t SHRPX_SMALL_WRITE_LIMIT = 1300; constexpr size_t SHRPX_SMALL_WRITE_LIMIT = 1300;
} // namespace } // namespace
size_t Connection::get_tls_write_limit() { size_t Connection::get_tls_write_limit() {

View File

@ -54,8 +54,8 @@ using namespace nghttp2;
namespace shrpx { namespace shrpx {
namespace { namespace {
const ev_tstamp CONNCHK_TIMEOUT = 5.; constexpr ev_tstamp CONNCHK_TIMEOUT = 5.;
const ev_tstamp CONNCHK_PING_TIMEOUT = 1.; constexpr ev_tstamp CONNCHK_PING_TIMEOUT = 1.;
} // namespace } // namespace
namespace { namespace {