From 9b68777b4b2ac73119129f315a6cd65d9bba3025 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 29 Mar 2015 20:40:02 +0800 Subject: [PATCH] Minor fixes of #1309 * Line length should <= 80 cols. * Add missing "s". --- atom/browser/native_window_views.cc | 8 ++++---- docs/api/browser-window.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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 -- 2.43.0