summaryrefslogtreecommitdiff
path: root/include/google
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2023-10-20 05:33:37 +0300
committerPatrick Williams <patrick@stwcx.xyz>2023-10-20 17:33:26 +0300
commit04b0e33c15ba4774a3fc914399594340e87dc706 (patch)
tree52344172f0c340ecec923549e47c9ea7c5d93020 /include/google
parent2b5b4dae1925b4b0884b5ed2be0a34dff851372c (diff)
downloadbmcweb-04b0e33c15ba4774a3fc914399594340e87dc706.tar.xz
multipart-parser: use emplace_back
clang-17 will have a stronger 'modernize-use-emplace' check and fails with the following warning: ``` ../include/multipart_parser.hpp:308:33: error: use emplace_back instead of push_back [modernize-use-emplace,-warnings-as-errors] 308 | mime_fields.push_back({}); | ^~~~~~~~~~~~ | emplace_back( ``` The vector::emplace_back needed an extra hint, as it would not directly coerce an initializer-list into the vector's value_type, so we need to use the value_type constructor. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I74417e0ff5a6e0991bfbe4936b4814f6ee4c1269
Diffstat (limited to 'include/google')
0 files changed, 0 insertions, 0 deletions