Skip to content

Commit

Permalink
Remove needless consts.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed Dec 6, 2012
1 parent 20618da commit fa1f109
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/duration.hpp
Expand Up @@ -54,7 +54,7 @@ class Duration {
return Duration(weeks * 1000000000 * 60 * 60 * 24 * 7);
}

constexpr int64_t nanoseconds() const {
constexpr int64_t nanoseconds() {
return nanoseconds_;
}
void set_nanoseconds(int64_t nanoseconds) {
Expand Down
14 changes: 7 additions & 7 deletions lib/flags_impl.hpp
Expand Up @@ -31,27 +31,27 @@ class FlagsImpl {
constexpr FlagsImpl() : flags_(0) {}
constexpr FlagsImpl(const FlagsImpl &flags) : flags_(flags.flags_) {}

constexpr explicit operator bool() const {
constexpr explicit operator bool() {
return flags_ != 0;
}

constexpr FlagsImpl operator&(FlagsImpl rhs) const {
constexpr FlagsImpl operator&(FlagsImpl rhs) {
return FlagsImpl(flags_ & rhs.flags_);
}
constexpr FlagsImpl operator|(FlagsImpl rhs) const {
constexpr FlagsImpl operator|(FlagsImpl rhs) {
return FlagsImpl(flags_ | rhs.flags_);
}
constexpr FlagsImpl operator^(FlagsImpl rhs) const {
constexpr FlagsImpl operator^(FlagsImpl rhs) {
return FlagsImpl(flags_ ^ rhs.flags_);
}
constexpr FlagsImpl operator~() const {
constexpr FlagsImpl operator~() {
return FlagsImpl(~flags_);
}

constexpr bool operator==(FlagsImpl rhs) const {
constexpr bool operator==(FlagsImpl rhs) {
return flags_ == rhs.flags_;
}
constexpr bool operator!=(FlagsImpl rhs) const {
constexpr bool operator!=(FlagsImpl rhs) {
return flags_ == rhs.flags_;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/time.hpp
Expand Up @@ -31,7 +31,7 @@ class Time {
static Time now();
static Time now_in_seconds();

constexpr int64_t nanoseconds() const {
constexpr int64_t nanoseconds() {
return nanoseconds_;
}
void set_nanoseconds(int64_t nanoseconds) {
Expand Down

0 comments on commit fa1f109

Please sign in to comment.