summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2019-12-02 22:25:42 +0100
committerAlbert Astals Cid <aacid@kde.org>2019-12-02 22:25:42 +0100
commitf6071f61e433c333e2b34458314a263921ad5fa7 (patch)
treea31daacd28db97e361a8bf9f8fadcfefa656a0a8 /test
parentfc9f0f12e88a21e8f15e9b881351e8515c9b6179 (diff)
enable modernize-redundant-void-arg
No copyright, it's a mechanical change
Diffstat (limited to 'test')
-rw-r--r--test/pdf-inspector.cc6
-rw-r--r--test/perf-test-preview-dummy.cc8
-rw-r--r--test/perf-test.cc12
3 files changed, 13 insertions, 13 deletions
diff --git a/test/pdf-inspector.cc b/test/pdf-inspector.cc
index 17f5fc69..e41802b5 100644
--- a/test/pdf-inspector.cc
+++ b/test/pdf-inspector.cc
@@ -42,11 +42,11 @@ enum {
class PdfInspector {
public:
- PdfInspector(void);
+ PdfInspector();
void set_file_name (const char *file_name);
void load (const char *file_name);
- void run (void);
+ void run ();
void error_dialog (const char *error_message);
void analyze_page (int page);
@@ -63,7 +63,7 @@ private:
-PdfInspector::PdfInspector(void)
+PdfInspector::PdfInspector()
{
GtkWidget *widget;
GError* error = nullptr;
diff --git a/test/perf-test-preview-dummy.cc b/test/perf-test-preview-dummy.cc
index adc4d2e8..ab007278 100644
--- a/test/perf-test-preview-dummy.cc
+++ b/test/perf-test-preview-dummy.cc
@@ -8,19 +8,19 @@ get any visual feedback during testing.
#include "splash/SplashBitmap.h"
-void PreviewBitmapInit(void);
-void PreviewBitmapDestroy(void);
+void PreviewBitmapInit();
+void PreviewBitmapDestroy();
void PreviewBitmapSplash(SplashBitmap *bmpSplash);
void PreviewBitmapSplash(SplashBitmap *bmpSplash)
{
}
-void PreviewBitmapDestroy(void)
+void PreviewBitmapDestroy()
{
}
-void PreviewBitmapInit(void)
+void PreviewBitmapInit()
{
}
diff --git a/test/perf-test.cc b/test/perf-test.cc
index 1988d705..70220cd3 100644
--- a/test/perf-test.cc
+++ b/test/perf-test.cc
@@ -74,8 +74,8 @@
They can be no-ops. An implementation for windows is in
perf-test-preview-win.cc
*/
-extern void PreviewBitmapInit(void);
-extern void PreviewBitmapDestroy(void);
+extern void PreviewBitmapInit();
+extern void PreviewBitmapDestroy();
extern void PreviewBitmapSplash(SplashBitmap *bmpSplash);
class PdfEnginePoppler {
@@ -86,14 +86,14 @@ public:
PdfEnginePoppler(const PdfEnginePoppler &) = delete;
PdfEnginePoppler& operator=(const PdfEnginePoppler &) = delete;
- const char *fileName(void) const { return _fileName; };
+ const char *fileName() const { return _fileName; };
void setFileName(const char *fileName) {
assert(!_fileName);
_fileName = (char*)strdup(fileName);
}
- int pageCount(void) const { return _pageCount; }
+ int pageCount() const { return _pageCount; }
bool load(const char *fileName);
SplashBitmap *renderBitmap(int pageNo, double zoomReal, int rotation);
@@ -394,7 +394,7 @@ static void splashColorSet(SplashColorPtr col, unsigned char red, unsigned char
}
}
-static void SplashColorsInit(void)
+static void SplashColorsInit()
{
splashColorSet(SPLASH_COL_RED_PTR, 0xff, 0, 0, 0);
splashColorSet(SPLASH_COL_GREEN_PTR, 0, 0xff, 0, 0);
@@ -818,7 +818,7 @@ static void PrintUsageAndExit(int argc, char **argv)
exit(0);
}
-static bool ShowPreview(void)
+static bool ShowPreview()
{
if (gfPreview || gfSlowPreview)
return true;