From d5242ff2052243cb262a6befb12eca4cf39e342d Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Wed, 28 Aug 2019 15:06:49 -0700 Subject: [PATCH] Append newlines to EOF of all translation units. (#11654) We are switching to -Wnewline-eof soon and these will become errors. Anyway, this was undefined behavior. --- shell/platform/glfw/key_event_handler.cc | 2 +- shell/platform/windows/angle_surface_manager.cc | 2 +- shell/platform/windows/key_event_handler.cc | 2 +- shell/platform/windows/win32_flutter_window.cc | 2 +- shell/platform/windows/win32_flutter_window.h | 2 +- shell/platform/windows/win32_window.cc | 2 +- shell/platform/windows/win32_window.h | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/shell/platform/glfw/key_event_handler.cc b/shell/platform/glfw/key_event_handler.cc index 1d7994340..2ad013c06 100644 --- a/shell/platform/glfw/key_event_handler.cc +++ b/shell/platform/glfw/key_event_handler.cc @@ -148,4 +148,4 @@ void KeyEventHandler::KeyboardHook(GLFWwindow* window, channel_->Send(event); } -} // namespace flutter \ No newline at end of file +} // namespace flutter diff --git a/shell/platform/windows/angle_surface_manager.cc b/shell/platform/windows/angle_surface_manager.cc index 02a407dd2..3e73ea2c6 100644 --- a/shell/platform/windows/angle_surface_manager.cc +++ b/shell/platform/windows/angle_surface_manager.cc @@ -184,4 +184,4 @@ EGLBoolean AngleSurfaceManager::SwapBuffers(const EGLSurface surface) { return (eglSwapBuffers(egl_display_, surface)); } -} // namespace flutter \ No newline at end of file +} // namespace flutter diff --git a/shell/platform/windows/key_event_handler.cc b/shell/platform/windows/key_event_handler.cc index 9e0ec96c0..e2e94d639 100644 --- a/shell/platform/windows/key_event_handler.cc +++ b/shell/platform/windows/key_event_handler.cc @@ -60,4 +60,4 @@ void KeyEventHandler::KeyboardHook(Win32FlutterWindow* window, channel_->Send(event); } -} // namespace flutter \ No newline at end of file +} // namespace flutter diff --git a/shell/platform/windows/win32_flutter_window.cc b/shell/platform/windows/win32_flutter_window.cc index d20140db2..7a4a9e821 100644 --- a/shell/platform/windows/win32_flutter_window.cc +++ b/shell/platform/windows/win32_flutter_window.cc @@ -325,4 +325,4 @@ void Win32FlutterWindow::DestroyRenderSurface() { render_surface = EGL_NO_SURFACE; } -} // namespace flutter \ No newline at end of file +} // namespace flutter diff --git a/shell/platform/windows/win32_flutter_window.h b/shell/platform/windows/win32_flutter_window.h index f9a9d306d..54b65bb6a 100644 --- a/shell/platform/windows/win32_flutter_window.h +++ b/shell/platform/windows/win32_flutter_window.h @@ -176,4 +176,4 @@ class Win32FlutterWindow : public Win32Window { } // namespace flutter -#endif // FLUTTER_SHELL_PLATFORM_WINDOWS_FLUTTER_WINDOW_H_ \ No newline at end of file +#endif // FLUTTER_SHELL_PLATFORM_WINDOWS_FLUTTER_WINDOW_H_ diff --git a/shell/platform/windows/win32_window.cc b/shell/platform/windows/win32_window.cc index d7a7b6758..51b6b9dad 100644 --- a/shell/platform/windows/win32_window.cc +++ b/shell/platform/windows/win32_window.cc @@ -237,4 +237,4 @@ Win32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept { GetWindowLongPtr(window, GWLP_USERDATA)); } -} // namespace flutter \ No newline at end of file +} // namespace flutter diff --git a/shell/platform/windows/win32_window.h b/shell/platform/windows/win32_window.h index e5d8d08ac..ecf03e249 100644 --- a/shell/platform/windows/win32_window.h +++ b/shell/platform/windows/win32_window.h @@ -129,4 +129,4 @@ class Win32Window { } // namespace flutter -#endif // FLUTTER_SHELL_PLATFORM_WINDOWS_FLUTTER_WIN32_WINDOW_H_ \ No newline at end of file +#endif // FLUTTER_SHELL_PLATFORM_WINDOWS_FLUTTER_WIN32_WINDOW_H_