Skip to content

Commit 29f0341

Browse files
committed
Cleanup (useless const variable)
1 parent f7a38cc commit 29f0341

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

proxy-processing/main.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ namespace registry
2828

2929
namespace proxy
3030
{
31-
using namespace std::literals;
32-
3331
auto retrieve_proxy_address() -> std::wstring;
34-
constexpr auto website_to_ping{ L"https://cloudflare.com"sv };
3532

3633
WINHTTP_AUTOPROXY_OPTIONS autoproxy_options
3734
{
@@ -93,7 +90,7 @@ auto proxy::retrieve_proxy_address() -> std::wstring
9390
if (winhttp_session == nullptr)
9491
return {};
9592

96-
const auto did_get_proxy{ WinHttpGetProxyForUrl(winhttp_session, std::data(proxy::website_to_ping), &autoproxy_options, &proxy_info) };
93+
const auto did_get_proxy{ WinHttpGetProxyForUrl(winhttp_session, L"https://cloudflare.com", &autoproxy_options, &proxy_info) };
9794
WinHttpCloseHandle(winhttp_session);
9895

9996
if (!did_get_proxy)

0 commit comments

Comments
 (0)