summaryrefslogtreecommitdiff
path: root/src/include/session.h
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-10-10 22:27:45 +0200
committerJannis M. Hoffmann <jannis@fehcom.de>2023-10-10 22:27:45 +0200
commite96321af67185460f917846b6f55f96d108c6ba8 (patch)
treef02c882c1fe867a614eb82fd2a595d82729a6d84 /src/include/session.h
parente662cb9875e974bd22a09f164fad41626aa26206 (diff)
remove unnecessary void in empty function declarations
Diffstat (limited to 'src/include/session.h')
-rw-r--r--src/include/session.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/include/session.h b/src/include/session.h
index b02abaa..6d9ffc1 100644
--- a/src/include/session.h
+++ b/src/include/session.h
@@ -43,42 +43,42 @@ namespace Binc {
CommandLineArgs args;
- int timeout(void) const;
+ int timeout() const;
bool hasEnv(const std::string &key) const;
std::string getEnv(const std::string &key);
void setEnv(const std::string &key, const std::string &value);
- int getState(void) const;
+ int getState() const;
void setState(int n);
bool parseCommandLine(int argc, char *argv[]);
- void assignCommandLineArgs(void);
- int getWriteBytes(void) const;
- int getReadBytes(void) const;
+ void assignCommandLineArgs();
+ int getWriteBytes() const;
+ int getReadBytes() const;
void addWriteBytes(int);
void addReadBytes(int);
- int getBodies(void) const;
- int getStatements(void) const;
- void addBody(void);
- void addStatement(void);
+ int getBodies() const;
+ int getStatements() const;
+ void addBody();
+ void addStatement();
void setLogFacility(int facility);
- int getLogFacility(void) const;
-
- const std::string &getLastError(void) const;
- const std::string &getResponseCode(void) const;
- const std::string &getIP(void) const;
- const std::string &getUserID(void) const;
- pid_t getPid(void);
- const std::string &getHostname(void);
+ int getLogFacility() const;
+
+ const std::string &getLastError() const;
+ const std::string &getResponseCode() const;
+ const std::string &getIP() const;
+ const std::string &getUserID() const;
+ pid_t getPid();
+ const std::string &getHostname();
void setLastError(const std::string &error) const;
void setResponseCode(const std::string &error) const;
- void clearResponseCode(void) const;
+ void clearResponseCode() const;
void setIP(const std::string &ip);
void setUserID(const std::string &s);
- inline Depot *getDepot(void) const;
+ inline Depot *getDepot() const;
- static Session &getInstance(void);
+ static Session &getInstance();
bool initialize(int argc, char *argv[]);
@@ -104,10 +104,10 @@ namespace Binc {
pid_t pid;
std::string hostname;
- Session(void);
+ Session();
};
- inline Depot *Session::getDepot(void) const
+ inline Depot *Session::getDepot() const
{
return depot;
}