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

Unified Diff: fpdfsdk/src/fpdfoom.cpp

Issue 453133004: clang-format all code (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 4 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
Index: fpdfsdk/src/fpdfoom.cpp
diff --git a/fpdfsdk/src/fpdfoom.cpp b/fpdfsdk/src/fpdfoom.cpp
index 2b202ba2ebcd7ef5344ec39ae1f6fbf7a0395279..f60911556e05bfd4d905c4f29c1a55190d61cf4b 100644
--- a/fpdfsdk/src/fpdfoom.cpp
+++ b/fpdfsdk/src/fpdfoom.cpp
@@ -1,27 +1,25 @@
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-
+
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "../include/fsdk_define.h"
#include "../include/fpdfoom.h"
-void OOM_Handler(void* param)
-{
- if (!param) return;
- ((OOM_INFO*)param)->FSDK_OOM_Handler((OOM_INFO*)param);
+void OOM_Handler(void* param) {
+ if (!param)
+ return;
+ ((OOM_INFO*)param)->FSDK_OOM_Handler((OOM_INFO*)param);
}
-
-DLLEXPORT FX_BOOL STDCALL FSDK_SetOOMHandler(OOM_INFO* oomInfo)
-{
+DLLEXPORT FX_BOOL STDCALL FSDK_SetOOMHandler(OOM_INFO* oomInfo) {
#ifndef _FXSDK_OPENSOURCE_
- if (!oomInfo || oomInfo->version!=1)
- return FALSE;
- FXMEM_SetOOMHandler(FXMEM_GetDefaultMgr(),OOM_Handler,oomInfo);
- return TRUE;
+ if (!oomInfo || oomInfo->version != 1)
+ return FALSE;
+ FXMEM_SetOOMHandler(FXMEM_GetDefaultMgr(), OOM_Handler, oomInfo);
+ return TRUE;
#else
- return TRUE;
+ return TRUE;
#endif
}

Powered by Google App Engine
This is Rietveld 408576698