From dba0d2791ce49f09bdccc7c7ca87e35dea4a1660 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 3 Oct 2016 22:06:54 +0900 Subject: [PATCH] nghttpx: Use emplace_back instead of push_back --- src/shrpx_config.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shrpx_config.cc b/src/shrpx_config.cc index 2bad2a8b..2b24f77b 100644 --- a/src/shrpx_config.cc +++ b/src/shrpx_config.cc @@ -2454,7 +2454,8 @@ int parse_config(Config *config, int optid, const StringRef &opt, case SHRPX_OPTID_LISTENER_DISABLE_TIMEOUT: return parse_duration(&config->conn.listener.timeout.sleep, opt, optarg); case SHRPX_OPTID_TLS_TICKET_KEY_FILE: - config->tls.ticket.files.push_back(make_string_ref(config->balloc, optarg)); + config->tls.ticket.files.emplace_back( + make_string_ref(config->balloc, optarg)); return 0; case SHRPX_OPTID_RLIMIT_NOFILE: { int n;