Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson committed Jan 2, 2025
1 parent bdb07ad commit de72484
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wpinet/src/main/native/include/wpinet/HttpUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ class HttpRequest {
template <typename T>
HttpRequest(const HttpLocation& loc, const T& extraParams)
: host{loc.host}, port{loc.port} {
SmallVector<std::pair<std::string_view, std::string_view>, 4> params;
std::vector<std::pair<std::string_view, std::string_view>> params;
for (const auto& p : loc.params) {
params.emplace_back(std::pair{GetFirst(p), GetSecond(p)});
}
Expand Down
2 changes: 1 addition & 1 deletion wpinet/src/test/native/cpp/WebSocketTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ TEST_F(WebSocketTest, CreateClientExtraHeaders) {
});
clientPipe->Connect(pipeName, [&]() {
WebSocket::ClientOptions options;
SmallVector<std::pair<std::string_view, std::string_view>, 4> extraHeaders;
std::vector<std::pair<std::string_view, std::string_view>> extraHeaders;
extraHeaders.emplace_back("Extra1", "Data1");
extraHeaders.emplace_back("Extra2", "Data2");
options.extraHeaders = extraHeaders;
Expand Down

0 comments on commit de72484

Please sign in to comment.