From: Cheng Zhao Date: Sun, 29 Mar 2015 12:40:02 +0000 (+0800) Subject: Minor fixes of #1309 X-Git-Tag: v0.22.3~4 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=9b68777b4b2ac73119129f315a6cd65d9bba3025;p=electron.git Minor fixes of #1309 * Line length should <= 80 cols. * Add missing "s". --- diff --git a/atom/browser/native_window_views.cc b/atom/browser/native_window_views.cc index c3b0d916..74f9129b 100644 --- a/atom/browser/native_window_views.cc +++ b/atom/browser/native_window_views.cc @@ -683,10 +683,10 @@ bool NativeWindowViews::IsVisibleOnAllWorkspaces() { // Use the presence/absence of _NET_WM_STATE_STICKY in _NET_WM_STATE to // determine whether the current window is visible on all workspaces. XAtom sticky_atom = gfx::GetAtom("_NET_WM_STATE_STICKY"); - std::vector atom_properties; - gfx::GetAtomArrayProperty(GetNativeWindow(), "_NET_WM_STATE", &atom_properties); - return std::find(atom_properties.begin(), - atom_properties.end(), sticky_atom) != atom_properties.end(); + std::vector properties; + gfx::GetAtomArrayProperty(GetNativeWindow(), "_NET_WM_STATE", &properties); + return std::find(properties.begin(), + properties.end(), sticky_atom) != properties.end(); #endif return false; } diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index c23ed830..5d8976a0 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -598,7 +598,7 @@ Sets whether the window should be visible on all workspaces. Returns whether the window is visible on all workspaces. -**Note:** This API always return false on Windows. +**Note:** This API always returns false on Windows. ## Class: WebContents