diff options
author | weili <weili@chromium.org> | 2016-06-20 11:37:05 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-20 11:37:05 -0700 |
commit | bff506d3b5e03891c137d9fe18f65cae112ebf2a (patch) | |
tree | c7e45a164599bc5917d570576d24860d6a59c4e5 /core | |
parent | 338a6b75994eb148d429b7abccfffaf7ae9f9b55 (diff) | |
download | pdfium-bff506d3b5e03891c137d9fe18f65cae112ebf2a.tar.xz |
Change func(void) to func()
Since PDFium is compiled as C++ code, the void keyword is not needed.
BUG=pdfium:519
Review-Url: https://codereview.chromium.org/2084603003
Diffstat (limited to 'core')
-rw-r--r-- | core/fpdfapi/fpdf_font/ttgsubtable.cpp | 4 | ||||
-rw-r--r-- | core/fpdfapi/fpdf_font/ttgsubtable.h | 2 | ||||
-rw-r--r-- | core/fxcrt/include/fx_system.h | 2 | ||||
-rw-r--r-- | core/fxge/win32/fx_win32_gdipext.cpp | 6 |
4 files changed, 7 insertions, 7 deletions
diff --git a/core/fpdfapi/fpdf_font/ttgsubtable.cpp b/core/fpdfapi/fpdf_font/ttgsubtable.cpp index 8900e274fe..56a388203f 100644 --- a/core/fpdfapi/fpdf_font/ttgsubtable.cpp +++ b/core/fpdfapi/fpdf_font/ttgsubtable.cpp @@ -61,7 +61,7 @@ FX_BOOL CFX_GlyphMap::Lookup(int key, int& value) { return TRUE; } -CFX_CTTGSUBTable::CFX_CTTGSUBTable(void) +CFX_CTTGSUBTable::CFX_CTTGSUBTable() : m_bFeautureMapLoad(FALSE), loaded(false) {} CFX_CTTGSUBTable::CFX_CTTGSUBTable(FT_Bytes gsub) @@ -71,7 +71,7 @@ CFX_CTTGSUBTable::CFX_CTTGSUBTable(FT_Bytes gsub) CFX_CTTGSUBTable::~CFX_CTTGSUBTable() {} -bool CFX_CTTGSUBTable::IsOk(void) const { +bool CFX_CTTGSUBTable::IsOk() const { return loaded; } diff --git a/core/fpdfapi/fpdf_font/ttgsubtable.h b/core/fpdfapi/fpdf_font/ttgsubtable.h index de7a4f03ec..fc040b6e53 100644 --- a/core/fpdfapi/fpdf_font/ttgsubtable.h +++ b/core/fpdfapi/fpdf_font/ttgsubtable.h @@ -33,7 +33,7 @@ class CFX_CTTGSUBTable { explicit CFX_CTTGSUBTable(FT_Bytes gsub); virtual ~CFX_CTTGSUBTable(); - bool IsOk(void) const; + bool IsOk() const; bool LoadGSUBTable(FT_Bytes gsub); bool GetVerticalGlyph(uint32_t glyphnum, uint32_t* vglyphnum); diff --git a/core/fxcrt/include/fx_system.h b/core/fxcrt/include/fx_system.h index ca5d49aad6..f4fc2e819c 100644 --- a/core/fxcrt/include/fx_system.h +++ b/core/fxcrt/include/fx_system.h @@ -228,7 +228,7 @@ extern "C" { #define FXSYS_GetFullPathName GetFullPathName #define FXSYS_GetModuleFileName GetModuleFileName #else -int FXSYS_GetACP(void); +int FXSYS_GetACP(); char* FXSYS_itoa(int value, char* str, int radix); int FXSYS_WideCharToMultiByte(uint32_t codepage, uint32_t dwFlags, diff --git a/core/fxge/win32/fx_win32_gdipext.cpp b/core/fxge/win32/fx_win32_gdipext.cpp index 3de1b5a8d5..8acf23b22a 100644 --- a/core/fxge/win32/fx_win32_gdipext.cpp +++ b/core/fxge/win32/fx_win32_gdipext.cpp @@ -1274,10 +1274,10 @@ class GpStream final : public IStream { } return E_NOINTERFACE; } - ULONG STDMETHODCALLTYPE AddRef(void) override { + ULONG STDMETHODCALLTYPE AddRef() override { return (ULONG)InterlockedIncrement(&m_RefCount); } - ULONG STDMETHODCALLTYPE Release(void) override { + ULONG STDMETHODCALLTYPE Release() override { ULONG res = (ULONG)InterlockedDecrement(&m_RefCount); if (res == 0) { delete this; @@ -1333,7 +1333,7 @@ class GpStream final : public IStream { return E_NOTIMPL; } HRESULT STDMETHODCALLTYPE Commit(DWORD) override { return E_NOTIMPL; } - HRESULT STDMETHODCALLTYPE Revert(void) override { return E_NOTIMPL; } + HRESULT STDMETHODCALLTYPE Revert() override { return E_NOTIMPL; } HRESULT STDMETHODCALLTYPE LockRegion(ULARGE_INTEGER, ULARGE_INTEGER, DWORD) override { |