mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 17:34:40 +02:00
Don't use (void) for empty argument list
This is necessary in C, but unusual in C++.
This commit is contained in:
parent
d66ca947c4
commit
6e8491abee
@ -130,7 +130,7 @@ static void quit_all(int err) {
|
|||||||
exit(err);
|
exit(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
const string GMenu2X::getHome(void)
|
const string GMenu2X::getHome()
|
||||||
{
|
{
|
||||||
return gmenu2x_home;
|
return gmenu2x_home;
|
||||||
}
|
}
|
||||||
|
@ -126,7 +126,7 @@ public:
|
|||||||
|
|
||||||
/* Returns the home directory of gmenu2x, usually
|
/* Returns the home directory of gmenu2x, usually
|
||||||
* ~/.gmenu2x */
|
* ~/.gmenu2x */
|
||||||
static const std::string getHome(void);
|
static const std::string getHome();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Variables needed for elements disposition
|
* Variables needed for elements disposition
|
||||||
|
@ -27,7 +27,7 @@ bool Monitor::event_accepted(struct inotify_event &event)
|
|||||||
return len >= 5 && !strncmp(event.name + len - 4, ".opk", 4);
|
return len >= 5 && !strncmp(event.name + len - 4, ".opk", 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
int Monitor::run(void)
|
int Monitor::run()
|
||||||
{
|
{
|
||||||
int wd, fd;
|
int wd, fd;
|
||||||
|
|
||||||
@ -84,7 +84,7 @@ Monitor::Monitor(std::string path, unsigned int flags) : path(path)
|
|||||||
pthread_create(&thd, NULL, inotify_thd, (void *) this);
|
pthread_create(&thd, NULL, inotify_thd, (void *) this);
|
||||||
}
|
}
|
||||||
|
|
||||||
Monitor::~Monitor(void)
|
Monitor::~Monitor()
|
||||||
{
|
{
|
||||||
pthread_cancel(thd);
|
pthread_cancel(thd);
|
||||||
pthread_join(thd, NULL);
|
pthread_join(thd, NULL);
|
||||||
|
@ -13,8 +13,8 @@ public:
|
|||||||
IN_DELETE_SELF | IN_MOVE_SELF);
|
IN_DELETE_SELF | IN_MOVE_SELF);
|
||||||
virtual ~Monitor();
|
virtual ~Monitor();
|
||||||
|
|
||||||
int run(void);
|
int run();
|
||||||
const std::string getPath(void) { return path; }
|
const std::string getPath() { return path; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string path;
|
std::string path;
|
||||||
|
Loading…
Reference in New Issue
Block a user