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
130130    exit(err);
131131}
132132
133const string GMenu2X::getHome(void)
133const string GMenu2X::getHome()
134134{
135135    return gmenu2x_home;
136136}
src/gmenu2x.h
126126
127127    /* Returns the home directory of gmenu2x, usually
128128     * ~/.gmenu2x */
129    static const std::string getHome(void);
129    static const std::string getHome();
130130
131131    /*
132132     * Variables needed for elements disposition
src/monitor.cpp
2727    return len >= 5 && !strncmp(event.name + len - 4, ".opk", 4);
2828}
2929
30int Monitor::run(void)
30int Monitor::run()
3131{
3232    int wd, fd;
3333
...... 
8484    pthread_create(&thd, NULL, inotify_thd, (void *) this);
8585}
8686
87Monitor::~Monitor(void)
87Monitor::~Monitor()
8888{
8989    pthread_cancel(thd);
9090    pthread_join(thd, NULL);
src/monitor.h
1313                IN_DELETE_SELF | IN_MOVE_SELF);
1414    virtual ~Monitor();
1515
16    int run(void);
17    const std::string getPath(void) { return path; }
16    int run();
17    const std::string getPath() { return path; }
1818
1919private:
2020    std::string path;

Archive Download the corresponding diff file



interactive