Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Unified Diff: runtime/bin/utils_win.h

Issue 2480793002: clang-format runtime/bin (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/utils_macos.cc ('k') | runtime/bin/utils_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/utils_win.h
diff --git a/runtime/bin/utils_win.h b/runtime/bin/utils_win.h
index 2f63faf129759f4296b255a7a1dc1d9fdeddef76..a46bbb83988bf75cd63533a0bc6f7de00d8f6d12 100644
--- a/runtime/bin/utils_win.h
+++ b/runtime/bin/utils_win.h
@@ -43,8 +43,8 @@ class StringUtilsWin {
class WideToUtf8Scope {
public:
explicit WideToUtf8Scope(const wchar_t* wide) {
- intptr_t utf8_len = WideCharToMultiByte(
- CP_UTF8, 0, wide, -1, NULL, 0, NULL, NULL);
+ intptr_t utf8_len =
+ WideCharToMultiByte(CP_UTF8, 0, wide, -1, NULL, 0, NULL, NULL);
char* utf8 = new char[utf8_len];
WideCharToMultiByte(CP_UTF8, 0, wide, -1, utf8, utf8_len, NULL, NULL);
length_ = utf8_len;
@@ -77,9 +77,7 @@ class Utf8ToWideScope {
wide_ = wide;
}
- ~Utf8ToWideScope() {
- delete[] wide_;
- }
+ ~Utf8ToWideScope() { delete[] wide_; }
wchar_t* wide() const { return wide_; }
intptr_t length() const { return length_; }
« no previous file with comments | « runtime/bin/utils_macos.cc ('k') | runtime/bin/utils_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698