[Groonga-commit] groonga/grnxx [master] Remove needless consts.

Back to archive index

susumu.yata null+****@clear*****
Thu Dec 6 10:59:14 JST 2012


susumu.yata	2012-12-06 10:59:14 +0900 (Thu, 06 Dec 2012)

  New Revision: fa1f109aea0226f13a3f44a6477a329320592d30
  https://github.com/groonga/grnxx/commit/fa1f109aea0226f13a3f44a6477a329320592d30

  Log:
    Remove needless consts.

  Modified files:
    lib/duration.hpp
    lib/flags_impl.hpp
    lib/time.hpp

  Modified: lib/duration.hpp (+1 -1)
===================================================================
--- lib/duration.hpp    2012-12-06 10:54:06 +0900 (c6f4c56)
+++ lib/duration.hpp    2012-12-06 10:59:14 +0900 (1b72c98)
@@ -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) {

  Modified: lib/flags_impl.hpp (+7 -7)
===================================================================
--- lib/flags_impl.hpp    2012-12-06 10:54:06 +0900 (bfd87b9)
+++ lib/flags_impl.hpp    2012-12-06 10:59:14 +0900 (539ba86)
@@ -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_;
   }
 

  Modified: lib/time.hpp (+1 -1)
===================================================================
--- lib/time.hpp    2012-12-06 10:54:06 +0900 (36d28d4)
+++ lib/time.hpp    2012-12-06 10:59:14 +0900 (f5c007e)
@@ -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) {
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index