From c3791282211761ea7516a4d834f7f3342b639696 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. (flutter/engine#11654) We are switching to -Wnewline-eof soon and these will become errors. Anyway, this was undefined behavior. --- engine/src/flutter/shell/platform/glfw/key_event_handler.cc | 2 +- .../src/flutter/shell/platform/windows/angle_surface_manager.cc | 2 +- engine/src/flutter/shell/platform/windows/key_event_handler.cc | 2 +- .../src/flutter/shell/platform/windows/win32_flutter_window.cc | 2 +- .../src/flutter/shell/platform/windows/win32_flutter_window.h | 2 +- engine/src/flutter/shell/platform/windows/win32_window.cc | 2 +- engine/src/flutter/shell/platform/windows/win32_window.h | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/engine/src/flutter/shell/platform/glfw/key_event_handler.cc b/engine/src/flutter/shell/platform/glfw/key_event_handler.cc index 1d7994340a..2ad013c064 100644 --- a/engine/src/flutter/shell/platform/glfw/key_event_handler.cc +++ b/engine/src/flutter/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/engine/src/flutter/shell/platform/windows/angle_surface_manager.cc b/engine/src/flutter/shell/platform/windows/angle_surface_manager.cc index 02a407dd24..3e73ea2c65 100644 --- a/engine/src/flutter/shell/platform/windows/angle_surface_manager.cc +++ b/engine/src/flutter/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/engine/src/flutter/shell/platform/windows/key_event_handler.cc b/engine/src/flutter/shell/platform/windows/key_event_handler.cc index 9e0ec96c01..e2e94d6398 100644 --- a/engine/src/flutter/shell/platform/windows/key_event_handler.cc +++ b/engine/src/flutter/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/engine/src/flutter/shell/platform/windows/win32_flutter_window.cc b/engine/src/flutter/shell/platform/windows/win32_flutter_window.cc index d20140db24..7a4a9e821d 100644 --- a/engine/src/flutter/shell/platform/windows/win32_flutter_window.cc +++ b/engine/src/flutter/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/engine/src/flutter/shell/platform/windows/win32_flutter_window.h b/engine/src/flutter/shell/platform/windows/win32_flutter_window.h index f9a9d306d9..54b65bb6aa 100644 --- a/engine/src/flutter/shell/platform/windows/win32_flutter_window.h +++ b/engine/src/flutter/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/engine/src/flutter/shell/platform/windows/win32_window.cc b/engine/src/flutter/shell/platform/windows/win32_window.cc index d7a7b67584..51b6b9dad6 100644 --- a/engine/src/flutter/shell/platform/windows/win32_window.cc +++ b/engine/src/flutter/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/engine/src/flutter/shell/platform/windows/win32_window.h b/engine/src/flutter/shell/platform/windows/win32_window.h index e5d8d08aca..ecf03e2495 100644 --- a/engine/src/flutter/shell/platform/windows/win32_window.h +++ b/engine/src/flutter/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_