diff options
author | Tor Egge <Tor.Egge@yahoo-inc.com> | 2017-05-24 08:58:59 +0000 |
---|---|---|
committer | Tor Egge <Tor.Egge@yahoo-inc.com> | 2017-05-24 08:58:59 +0000 |
commit | d3545c64eb097cbebc4263c9361696a8a86706e9 (patch) | |
tree | 7dc33039dbc29e33d5dceefc940768792cd2b6ba /searchlib/src/apps/docstore | |
parent | 0e84e9bbaf713ee446af28e029bfc0dbec367df3 (diff) |
C++ style fix: Use foo() instead of foo(void)
Diffstat (limited to 'searchlib/src/apps/docstore')
4 files changed, 16 insertions, 16 deletions
diff --git a/searchlib/src/apps/docstore/benchmarkdatastore.cpp b/searchlib/src/apps/docstore/benchmarkdatastore.cpp index 8aa2156743d..87cfc219d2e 100644 --- a/searchlib/src/apps/docstore/benchmarkdatastore.cpp +++ b/searchlib/src/apps/docstore/benchmarkdatastore.cpp @@ -16,23 +16,23 @@ using namespace search; class BenchmarkDataStoreApp : public FastOS_Application { - void usage(void); + void usage(); int benchmark(const vespalib::string & directory, size_t numReads, size_t numThreads, size_t perChunk, const vespalib::string & readType); - int Main(void) override; + int Main() override; void read(size_t numReads, size_t perChunk, const IDataStore * dataStore); }; void -BenchmarkDataStoreApp::usage(void) +BenchmarkDataStoreApp::usage() { printf("Usage: %s <direcory> <numreads> <numthreads> <objects per read> <normal,directio,mmap,mlock>\n", _argv[0]); fflush(stdout); } int -BenchmarkDataStoreApp::Main(void) +BenchmarkDataStoreApp::Main() { if (_argc >= 2) { size_t numThreads(16); diff --git a/searchlib/src/apps/docstore/create-idx-from-dat.cpp b/searchlib/src/apps/docstore/create-idx-from-dat.cpp index 847c5eb4da3..fdb05dabf62 100644 --- a/searchlib/src/apps/docstore/create-idx-from-dat.cpp +++ b/searchlib/src/apps/docstore/create-idx-from-dat.cpp @@ -11,13 +11,13 @@ using namespace search; class CreateIdxFileFromDatApp : public FastOS_Application { - void usage(void); + void usage(); int createIdxFile(const vespalib::string & datFileName, const vespalib::string & idxFileName); - int Main(void) override; + int Main() override; }; void -CreateIdxFileFromDatApp::usage(void) +CreateIdxFileFromDatApp::usage() { printf("Usage: %s <datfile> <idxfile>\n", _argv[0]); fflush(stdout); @@ -149,7 +149,7 @@ int CreateIdxFileFromDatApp::createIdxFile(const vespalib::string & datFileName, } int -CreateIdxFileFromDatApp::Main(void) +CreateIdxFileFromDatApp::Main() { vespalib::string cmd; if (_argc == 3) { diff --git a/searchlib/src/apps/docstore/documentstoreinspect.cpp b/searchlib/src/apps/docstore/documentstoreinspect.cpp index 1f8db5e5510..42ff9e1395f 100644 --- a/searchlib/src/apps/docstore/documentstoreinspect.cpp +++ b/searchlib/src/apps/docstore/documentstoreinspect.cpp @@ -11,16 +11,16 @@ using namespace search; class DocumentStoreInspectApp : public FastOS_Application { - void usage(void); + void usage(); int verify(const vespalib::string & directory); int dumpIdxFile(const vespalib::string & file); - int Main(void) override; + int Main() override; }; void -DocumentStoreInspectApp::usage(void) +DocumentStoreInspectApp::usage() { printf("Usage: %s dumpidxfile [--idxfile idxFile]\n", _argv[0]); fflush(stdout); @@ -62,7 +62,7 @@ int DocumentStoreInspectApp::dumpIdxFile(const vespalib::string & file) } int -DocumentStoreInspectApp::Main(void) +DocumentStoreInspectApp::Main() { vespalib::string cmd; if (_argc >= 2) { diff --git a/searchlib/src/apps/docstore/verifylogdatastore.cpp b/searchlib/src/apps/docstore/verifylogdatastore.cpp index e586b1b4ed7..a3d2034604d 100644 --- a/searchlib/src/apps/docstore/verifylogdatastore.cpp +++ b/searchlib/src/apps/docstore/verifylogdatastore.cpp @@ -12,22 +12,22 @@ using namespace search; class VerifyLogDataStoreApp : public FastOS_Application { - void usage(void); + void usage(); int verify(const vespalib::string & directory); - int Main(void) override; + int Main() override; }; void -VerifyLogDataStoreApp::usage(void) +VerifyLogDataStoreApp::usage() { printf("Usage: %s <direcory>\n", _argv[0]); fflush(stdout); } int -VerifyLogDataStoreApp::Main(void) +VerifyLogDataStoreApp::Main() { if (_argc >= 2) { vespalib::string directory(_argv[1]); |