From 914eb106c5373a133ddd7d497c005e4961292155 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 13 Nov 2015 20:35:06 -0500 Subject: Fix minor style issues --- pugl/pugl.hpp | 2 +- pugl/pugl_internal.h | 2 +- pugl/pugl_win.cpp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pugl/pugl.hpp b/pugl/pugl.hpp index a3bafab..03816c2 100644 --- a/pugl/pugl.hpp +++ b/pugl/pugl.hpp @@ -114,7 +114,7 @@ private: PuglView* _view; }; -} // namespace pugl +} // namespace pugl /** @} diff --git a/pugl/pugl_internal.h b/pugl/pugl_internal.h index bef8399..1238ebc 100644 --- a/pugl/pugl_internal.h +++ b/pugl/pugl_internal.h @@ -250,7 +250,7 @@ puglDecodeUTF8(const uint8_t* buf) { #define FAIL_IF(cond) { if (cond) return 0xFFFD; } - /* http://en.wikipedia.org/wiki/UTF-8 */ + // http://en.wikipedia.org/wiki/UTF-8 if (buf[0] < 0x80) { return buf[0]; diff --git a/pugl/pugl_win.cpp b/pugl/pugl_win.cpp index 6d4219f..1b303db 100644 --- a/pugl/pugl_win.cpp +++ b/pugl/pugl_win.cpp @@ -295,7 +295,7 @@ initMouseEvent(PuglEvent* event, int button, bool press, LPARAM lParam) - { +{ POINT pt = { GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam) }; ClientToScreen(view->impl->hwnd, &pt); @@ -340,7 +340,7 @@ utf16_to_code_point(const wchar_t* input, size_t input_size) if ((code_unit & 0xFC00) == 0xD800) { if (input_size < 2) { // "Error: is surrogate but input_size too small" - return 0xFFFD; // replacement character + return 0xFFFD; // replacement character } unsigned int code_unit_2 = *++input; @@ -351,7 +351,7 @@ utf16_to_code_point(const wchar_t* input, size_t input_size) // TODO: push_back(code_unit_2); // "Error: Unpaired surrogates." - return 0xFFFD; // replacement character + return 0xFFFD; // replacement character } return code_unit; } -- cgit v1.2.3