From 57adf74420d6f7a481cc883940a63a975c8524a9 Mon Sep 17 00:00:00 2001 From: "etienneb@chromium.org" Date: Wed, 21 Aug 2013 19:21:45 +0000 Subject: Fix unused variable declaration. This issue was found by a linter. R=sergeyu@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/23168005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218795 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/host/pairing_registry_delegate_win.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'remoting') diff --git a/remoting/host/pairing_registry_delegate_win.cc b/remoting/host/pairing_registry_delegate_win.cc index c7f11d9..20230d0 100644 --- a/remoting/host/pairing_registry_delegate_win.cc +++ b/remoting/host/pairing_registry_delegate_win.cc @@ -83,8 +83,7 @@ bool WriteValue(base::win::RegKey& key, // presubmit: allow wstring std::wstring value_json = UTF8ToWide(value_json_utf8); - LONG result = key.WriteValue(value_name, - UTF8ToWide(value_json_utf8).c_str()); + LONG result = key.WriteValue(value_name, value_json.c_str()); if (result != ERROR_SUCCESS) { SetLastError(result); PLOG(ERROR) << "Cannot write value '" << value_name << "'"; -- cgit v1.1