From 71b809959bb8f775d83dc52628448bb8b8322b28 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 14 Apr 2015 12:44:47 +0200 Subject: remove unnecessary use of void in function declarations ie. void f(void); becomes void f(); I used the following command to make the changes: git grep -lP '\(\s*void\s*\)' -- *.cxx \ | xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;' and ran it for both .cxx and .hxx files. Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd --- vcl/win/source/gdi/salnativewidgets-luna.cxx | 8 ++++---- vcl/win/source/gdi/winlayout.hxx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'vcl/win') diff --git a/vcl/win/source/gdi/salnativewidgets-luna.cxx b/vcl/win/source/gdi/salnativewidgets-luna.cxx index e7b8899e595a..c680e4b65bcd 100644 --- a/vcl/win/source/gdi/salnativewidgets-luna.cxx +++ b/vcl/win/source/gdi/salnativewidgets-luna.cxx @@ -91,7 +91,7 @@ public: HRESULT DrawThemeBackground( HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, const RECT *pClipRect ); HRESULT DrawThemeText( HTHEME hTheme, HDC hdc, int iPartId, int iStateId, LPCWSTR pszText, int iCharCount, DWORD dwTextFlags, DWORD dwTextFlags2, const RECT *pRect ); HRESULT GetThemePartSize( HTHEME hTheme, HDC hdc, int iPartId, int iStateId, RECT *prc, THEMESIZE eSize, SIZE *psz ); - BOOL IsThemeActive( void ); + BOOL IsThemeActive(); }; static VisualStylesAPI vsAPI; @@ -174,7 +174,7 @@ HRESULT VisualStylesAPI::GetThemePartSize( HTHEME hTheme, HDC hdc, int iPartId, return S_FALSE; } -BOOL VisualStylesAPI::IsThemeActive( void ) +BOOL VisualStylesAPI::IsThemeActive() { if(lpfnIsThemeActive) return (*lpfnIsThemeActive) (); @@ -185,7 +185,7 @@ BOOL VisualStylesAPI::IsThemeActive( void ) /********************************************************* * Initialize XP theming and local stuff *********************************************************/ -void SalData::initNWF( void ) +void SalData::initNWF() { ImplSVData* pSVData = ImplGetSVData(); @@ -196,7 +196,7 @@ void SalData::initNWF( void ) // ********************************************************* // * Release theming handles // ******************************************************** -void SalData::deInitNWF( void ) +void SalData::deInitNWF() { ThemeMap::iterator iter = aThemeMap.begin(); while( iter != aThemeMap.end() ) diff --git a/vcl/win/source/gdi/winlayout.hxx b/vcl/win/source/gdi/winlayout.hxx index 188b9539cbd7..196b8e941f19 100644 --- a/vcl/win/source/gdi/winlayout.hxx +++ b/vcl/win/source/gdi/winlayout.hxx @@ -43,7 +43,7 @@ public: WinLayout(HDC, const ImplWinFontData&, ImplWinFontEntry&, bool bUseOpenGL); virtual void InitFont() const; void SetFontScale( float f ) { mfFontScale = f; } - HFONT DisableFontScaling( void) const; + HFONT DisableFontScaling() const; SCRIPT_CACHE& GetScriptCache() const; -- cgit