Date: | 2014-08-15 14:01:11 (9 years 7 months ago) |
---|---|
Author: | Maarten ter Huurne |
Commit: | 6e8491abee0524d0a1e5b29032f73c1e09d5bcc5 |
Message: | Don't use (void) for empty argument list This is necessary in C, but unusual in C++. |
Files: |
src/gmenu2x.cpp (1 diff) src/gmenu2x.h (1 diff) src/monitor.cpp (2 diffs) src/monitor.h (1 diff) |
Change Details
src/gmenu2x.cpp | ||
---|---|---|
130 | 130 | exit(err); |
131 | 131 | } |
132 | 132 | |
133 | const string GMenu2X::getHome(void) | |
133 | const string GMenu2X::getHome() | |
134 | 134 | { |
135 | 135 | return gmenu2x_home; |
136 | 136 | } |
src/gmenu2x.h | ||
---|---|---|
126 | 126 | |
127 | 127 | /* Returns the home directory of gmenu2x, usually |
128 | 128 | * ~/.gmenu2x */ |
129 | static const std::string getHome(void); | |
129 | static const std::string getHome(); | |
130 | 130 | |
131 | 131 | /* |
132 | 132 | * Variables needed for elements disposition |
src/monitor.cpp | ||
---|---|---|
27 | 27 | return len >= 5 && !strncmp(event.name + len - 4, ".opk", 4); |
28 | 28 | } |
29 | 29 | |
30 | int Monitor::run(void) | |
30 | int Monitor::run() | |
31 | 31 | { |
32 | 32 | int wd, fd; |
33 | 33 | |
... | ... | |
84 | 84 | pthread_create(&thd, NULL, inotify_thd, (void *) this); |
85 | 85 | } |
86 | 86 | |
87 | Monitor::~Monitor(void) | |
87 | Monitor::~Monitor() | |
88 | 88 | { |
89 | 89 | pthread_cancel(thd); |
90 | 90 | pthread_join(thd, NULL); |
src/monitor.h | ||
---|---|---|
13 | 13 | IN_DELETE_SELF | IN_MOVE_SELF); |
14 | 14 | virtual ~Monitor(); |
15 | 15 | |
16 | int run(void); | |
17 | const std::string getPath(void) { return path; } | |
16 | int run(); | |
17 | const std::string getPath() { return path; } | |
18 | 18 | |
19 | 19 | private: |
20 | 20 | std::string path; |
Branches:
install_locations
master
opkrun
packages