Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Unified Diff: net/dns/dns_config_service_win_unittest.cc

Issue 15200005: Grab bag of clang fixes for Windows code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/dns/dns_config_service_win_unittest.cc
diff --git a/net/dns/dns_config_service_win_unittest.cc b/net/dns/dns_config_service_win_unittest.cc
index 092985c56c851c74872a6fd6db5c835c8dc69d88..3b20d4bc65aa27e5123cc55a67e90dec053c9d2d 100644
--- a/net/dns/dns_config_service_win_unittest.cc
+++ b/net/dns/dns_config_service_win_unittest.cc
@@ -52,7 +52,7 @@ TEST(DnsConfigServiceWinTest, ParseSearchList) {
struct AdapterInfo {
IFTYPE if_type;
IF_OPER_STATUS oper_status;
- PWCHAR dns_suffix;
+ const WCHAR *dns_suffix;
mmenke 2013/05/16 21:58:46 Per Google style guide, this should be "const WCHA
std::string dns_server_addresses[4]; // Empty string indicates end.
int ports[4];
};
@@ -89,7 +89,7 @@ scoped_ptr_malloc<IP_ADAPTER_ADDRESSES> CreateAdapterAddresses(
adapter->Next = adapter + 1;
adapter->IfType = info.if_type;
adapter->OperStatus = info.oper_status;
- adapter->DnsSuffix = info.dns_suffix;
+ adapter->DnsSuffix = const_cast<PWCHAR>(info.dns_suffix);
IP_ADAPTER_DNS_SERVER_ADDRESS* address = NULL;
for (size_t j = 0; !info.dns_server_addresses[j].empty(); ++j) {
--num_addresses;

Powered by Google App Engine
This is Rietveld 408576698