Remove redundant const qualifliers from string_view
authorJonathan Wakely <jwakely@redhat.com>
Tue, 11 Oct 2016 10:33:24 +0000 (11:33 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 11 Oct 2016 10:33:24 +0000 (11:33 +0100)
* include/experimental/string_view (basic_string_view::_S_compare):
Remove redundant const from return type.
* include/std/string_view (basic_string_view:_S_compare): Likewise.

From-SVN: r240981

libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/string_view
libstdc++-v3/include/std/string_view

index 7743e09cc46aa6a77116e367ad6a45847bc5ed63..70a6b1c7be6058b9dab18b7cc0fd1f60aed8466b 100644 (file)
@@ -1,5 +1,9 @@
 2016-10-11  Jonathan Wakely  <jwakely@redhat.com>
 
+       * include/experimental/string_view (basic_string_view::_S_compare):
+       Remove redundant const from return type.
+       * include/std/string_view (basic_string_view:_S_compare): Likewise.
+
        * include/bits/std_mutex.h (mutex::native_handle)
        (lock_guard(mutex_type&, adopt_lock_t)
        (unique_lock(mutex_type&, adopt_lock_t): Add noexcept.
index 8cb8c1ffa1c377677d373eb2f52c24a0e0fe36cf..c1dfef0e3bf0636054231affeecc6b6e9fd14793 100644 (file)
@@ -420,7 +420,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
     private:
 
-      static constexpr const int
+      static constexpr int
       _S_compare(size_type __n1, size_type __n2) noexcept
       {
        return difference_type{__n1 - __n2} > std::numeric_limits<int>::max()
index 14bfcd06e00ad2af4fca90bb4e44ef9b49a1de23..b2d2a296ba4e3e3e84f430434547f6e4cd0e4707 100644 (file)
@@ -414,7 +414,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       
     private:
 
-      static constexpr const int
+      static constexpr int
       _S_compare(size_type __n1, size_type __n2) noexcept
       {
        return difference_type{__n1 - __n2} > std::numeric_limits<int>::max()