From 808662da0c17e6648081b46ed16b9efa44ff7fff Mon Sep 17 00:00:00 2001
From: Alexander Bobkov <alexander.e.bobkov@gmail.com>
Date: Mon, 13 Jun 2016 17:58:57 +0300
Subject: [PATCH 1/3] Visual Studio 2015 build fix

---
 src/kml/base/file_win32.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/kml/base/file_win32.cc b/src/kml/base/file_win32.cc
index c46e099..fa1b377 100644
--- a/src/kml/base/file_win32.cc
+++ b/src/kml/base/file_win32.cc
@@ -42,7 +42,8 @@ namespace kmlbase {
 // Internal to the win32 file class. We need a conversion from string to
 // LPCWSTR.
 static std::wstring Str2Wstr(const string& str) {
-  std::wstring wstr(str.length(), L'');
+  std::wstring wstr;
+  wstr.resize(str.length());
   std::copy(str.begin(), str.end(), wstr.begin());
   return wstr;
 }
