Use consistent syntax for constructing std::strings from absl::string_views

Bug: webrtc:13579
Change-Id: Ifaf9901972a39217accd9ef0111f01de9f074058
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/269080
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Commit-Queue: Ali Tofigh <alito@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#37602}
diff --git a/rtc_base/net_helpers.cc b/rtc_base/net_helpers.cc
index f092989..73fe862 100644
--- a/rtc_base/net_helpers.cc
+++ b/rtc_base/net_helpers.cc
@@ -41,7 +41,7 @@
 }
 
 int inet_pton(int af, absl::string_view src, void* dst) {
-  std::string src_str = std::string(src);
+  std::string src_str(src);
 #if defined(WEBRTC_WIN)
   return win32_inet_pton(af, src_str.c_str(), dst);
 #else