Home
Phabricator
Search
Log In
Differential
D6829
Diff 17778
src/ioslaves/file/file_p.h
Changeset View
#define is for 1990, these days we have a proper C++ language where preprocessor hacks are less and less needed.
An enum value is probably the cleanest way here (to avoid the whole issue of "in which .cpp file to implement it", if it was an actual int variable).
The naming EFOO is very libc-like, I wouldn't use this here.
In fact, why not use KIO::ERR_USER_CANCELED? (note that it has a value of 1, don't use 1 for something else ;)