diff options
author | David Robillard <d@drobilla.net> | 2015-11-13 20:35:06 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-11-13 20:35:06 -0500 |
commit | 914eb106c5373a133ddd7d497c005e4961292155 (patch) | |
tree | b11e818f06c4a25d48132a338a0071518dba9dce | |
parent | 4aa6e38d9993281a21ab8552abc79f69e6f5265a (diff) |
Fix minor style issues
-rw-r--r-- | pugl/pugl.hpp | 2 | ||||
-rw-r--r-- | pugl/pugl_internal.h | 2 | ||||
-rw-r--r-- | 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; } |