Skip to content

Commit

Permalink
COMMON: Rename XOREOS_EXPLICIT_OPERATOR_CONV to PHAETHON_
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed May 25, 2018
1 parent 3faa5a3 commit 702d93c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/common/disposableptr.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class DisposablePtrBase : boost::noncopyable {
/** Implicit conversion operator to bool for convenience, to make
* checks like "if (disposablePtr) ..." possible.
*/
XOREOS_EXPLICIT_OPERATOR_CONV operator bool() const { return _pointer != 0; }
PHAETHON_EXPLICIT_OPERATOR_CONV operator bool() const { return _pointer != 0; }

~DisposablePtrBase() {
if (_dispose)
Expand Down
2 changes: 1 addition & 1 deletion src/common/scopedptr.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class ScopedPtrBase : boost::noncopyable {
/** Implicit conversion operator to bool for convenience, to make
* checks like "if (scopedPtr) ..." possible.
*/
XOREOS_EXPLICIT_OPERATOR_CONV operator bool() const { return _pointer != 0; }
PHAETHON_EXPLICIT_OPERATOR_CONV operator bool() const { return _pointer != 0; }

~ScopedPtrBase() {
Deallocator::destroy(_pointer);
Expand Down
4 changes: 2 additions & 2 deletions src/common/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,9 @@

// Compatibility macro for dealing with the explicit bool cast problem.
#if __cplusplus < 201103L
#define XOREOS_EXPLICIT_OPERATOR_CONV
#define PHAETHON_EXPLICIT_OPERATOR_CONV
#else
#define XOREOS_EXPLICIT_OPERATOR_CONV explicit
#define PHAETHON_EXPLICIT_OPERATOR_CONV explicit
#endif

//
Expand Down

0 comments on commit 702d93c

Please sign in to comment.