From dbc3d3e1e0b28692c31f08f6b4c606577255078d Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 11 May 2017 13:41:38 -0400 Subject: Fixup Initialize spelling Change-Id: Ibd8d70264d79afc0baabaa5093aceb21ee777196 Reviewed-on: https://pdfium-review.googlesource.com/5334 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- core/fxcrt/fx_memory.cpp | 2 +- core/fxcrt/fx_memory.h | 2 +- fpdfsdk/fpdfview.cpp | 2 +- testing/unit_test_main.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/fxcrt/fx_memory.cpp b/core/fxcrt/fx_memory.cpp index 2807139aa2..2afcbcecee 100644 --- a/core/fxcrt/fx_memory.cpp +++ b/core/fxcrt/fx_memory.cpp @@ -11,7 +11,7 @@ pdfium::base::PartitionAllocatorGeneric gArrayBufferPartitionAllocator; pdfium::base::PartitionAllocatorGeneric gStringPartitionAllocator; -void FXMEM_InitalizePartitionAlloc() { +void FXMEM_InitializePartitionAlloc() { static bool s_gPartitionAllocatorsInitialized = false; if (!s_gPartitionAllocatorsInitialized) { pdfium::base::PartitionAllocGlobalInit(FX_OutOfMemoryTerminate); diff --git a/core/fxcrt/fx_memory.h b/core/fxcrt/fx_memory.h index 684f2f2646..9a7de4cc2b 100644 --- a/core/fxcrt/fx_memory.h +++ b/core/fxcrt/fx_memory.h @@ -32,7 +32,7 @@ void FXMEM_DefaultFree(void* pointer, int flags); extern pdfium::base::PartitionAllocatorGeneric gArrayBufferPartitionAllocator; extern pdfium::base::PartitionAllocatorGeneric gStringPartitionAllocator; -void FXMEM_InitalizePartitionAlloc(); +void FXMEM_InitializePartitionAlloc(); NEVER_INLINE void FX_OutOfMemoryTerminate(); inline void* FX_SafeRealloc(void* ptr, size_t num_members, size_t member_size) { diff --git a/fpdfsdk/fpdfview.cpp b/fpdfsdk/fpdfview.cpp index 72ef75ce07..616402e564 100644 --- a/fpdfsdk/fpdfview.cpp +++ b/fpdfsdk/fpdfview.cpp @@ -371,7 +371,7 @@ FPDF_InitLibraryWithConfig(const FPDF_LIBRARY_CONFIG* cfg) { if (g_pCodecModule) return; - FXMEM_InitalizePartitionAlloc(); + FXMEM_InitializePartitionAlloc(); g_pCodecModule = new CCodec_ModuleMgr(); CFX_GEModule* pModule = CFX_GEModule::Get(); diff --git a/testing/unit_test_main.cpp b/testing/unit_test_main.cpp index d8076abec6..f57ec3c555 100644 --- a/testing/unit_test_main.cpp +++ b/testing/unit_test_main.cpp @@ -9,7 +9,7 @@ // Can't use gtest-provided main since we need to initialize partition // alloc before invoking any test. int main(int argc, char** argv) { - FXMEM_InitalizePartitionAlloc(); + FXMEM_InitializePartitionAlloc(); testing::InitGoogleTest(&argc, argv); testing::InitGoogleMock(&argc, argv); return RUN_ALL_TESTS(); -- cgit v1.2.3