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

Unified Diff: third_party/WebKit/Source/wtf/FilePrintStream.cpp

Issue 1611343002: wtf reformat test Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pydent Created 4 years, 11 months 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 | « third_party/WebKit/Source/wtf/FilePrintStream.h ('k') | third_party/WebKit/Source/wtf/Float32Array.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/FilePrintStream.cpp
diff --git a/third_party/WebKit/Source/wtf/FilePrintStream.cpp b/third_party/WebKit/Source/wtf/FilePrintStream.cpp
index d248c8c7701ef7944f8ff5c9fcf616e1b1797bce..2685551057a06c0546db229443001543ca6e6485 100644
--- a/third_party/WebKit/Source/wtf/FilePrintStream.cpp
+++ b/third_party/WebKit/Source/wtf/FilePrintStream.cpp
@@ -28,36 +28,29 @@
namespace WTF {
FilePrintStream::FilePrintStream(FILE* file, AdoptionMode adoptionMode)
- : m_file(file)
- , m_adoptionMode(adoptionMode)
-{
-}
+ : m_file(file), m_adoptionMode(adoptionMode) {}
-FilePrintStream::~FilePrintStream()
-{
- if (m_adoptionMode == Borrow)
- return;
- fclose(m_file);
+FilePrintStream::~FilePrintStream() {
+ if (m_adoptionMode == Borrow)
+ return;
+ fclose(m_file);
}
-PassOwnPtr<FilePrintStream> FilePrintStream::open(const char* filename, const char* mode)
-{
- FILE* file = fopen(filename, mode);
- if (!file)
- return PassOwnPtr<FilePrintStream>();
+PassOwnPtr<FilePrintStream> FilePrintStream::open(const char* filename,
+ const char* mode) {
+ FILE* file = fopen(filename, mode);
+ if (!file)
+ return PassOwnPtr<FilePrintStream>();
- return adoptPtr(new FilePrintStream(file));
+ return adoptPtr(new FilePrintStream(file));
}
-void FilePrintStream::vprintf(const char* format, va_list argList)
-{
- vfprintf(m_file, format, argList);
+void FilePrintStream::vprintf(const char* format, va_list argList) {
+ vfprintf(m_file, format, argList);
}
-void FilePrintStream::flush()
-{
- fflush(m_file);
+void FilePrintStream::flush() {
+ fflush(m_file);
}
-} // namespace WTF
-
+} // namespace WTF
« no previous file with comments | « third_party/WebKit/Source/wtf/FilePrintStream.h ('k') | third_party/WebKit/Source/wtf/Float32Array.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698