diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-06-11 12:05:04 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-06-11 12:05:04 -0700 |
commit | 677b8fffb0c76c009ad808ed91a27738e5420254 (patch) | |
tree | 3cf9937569b7ca0cb93b6dfd04ac854f414f9d36 /core/src/reflow | |
parent | 2b5e0d5b20654d116045484868c9e015ed698124 (diff) | |
download | pdfium-677b8fffb0c76c009ad808ed91a27738e5420254.tar.xz |
Kill FXSYS_mem{cpy,cmp,set.move}{32,8}.
At one point in time, it may have made sense to indicate the
expected alignment of the memory you're about to copy, but that
was last century. The compiler will take care of it just fine.
I stopped short of removing the FXSYS_ wrapper macros entirely.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1179693003.
Diffstat (limited to 'core/src/reflow')
-rw-r--r-- | core/src/reflow/layoutprocessor_reflow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/reflow/layoutprocessor_reflow.cpp b/core/src/reflow/layoutprocessor_reflow.cpp index 7e9ff42137..151ae9b4a5 100644 --- a/core/src/reflow/layoutprocessor_reflow.cpp +++ b/core/src/reflow/layoutprocessor_reflow.cpp @@ -213,7 +213,7 @@ void CPDF_LayoutProcessor_Reflow::ProcessTable(FX_FLOAT dx) int rowCount = pTable->m_nCell.GetSize(); int n = 0; FX_FLOAT* dyRow = FX_Alloc(FX_FLOAT, rowCount + 1); - FXSYS_memset32(dyRow, 0, sizeof(FX_FLOAT) * (rowCount + 1)); + FXSYS_memset(dyRow, 0, sizeof(FX_FLOAT) * (rowCount + 1)); dyRow[0] = 0 ; dyRow[0] = - pTable->m_ReflowPageHeight; int tableColCount = 0; @@ -226,7 +226,7 @@ void CPDF_LayoutProcessor_Reflow::ProcessTable(FX_FLOAT dx) } int cellCount = tableColCount * rowCount; RF_TableCell** pVirtualTable = FX_Alloc(RF_TableCell*, cellCount); - FXSYS_memset32(pVirtualTable, 0, sizeof(RF_TableCell*) * cellCount); + FXSYS_memset(pVirtualTable, 0, sizeof(RF_TableCell*) * cellCount); for(i = 0; i < rowCount; i++) { int colCount = pTable->m_nCell.GetAt(i); FX_FLOAT rowWidth = 0; @@ -583,7 +583,7 @@ void CPDF_LayoutProcessor_Reflow::ProcessElement(IPDF_LayoutElement* pElement, F break; } RF_TableCell* pCell = FX_Alloc(RF_TableCell, 1); - FXSYS_memset32(pCell, 0 , sizeof(RF_TableCell)); + FXSYS_memset(pCell, 0 , sizeof(RF_TableCell)); CRF_Table* pTable = m_TableArray.GetAt(m_TableArray.GetSize() - 1); int pos = pTable->m_nCell.GetSize() - 1; pCell->m_BeginPos = m_pReflowedPage->m_pReflowed->GetSize(); |