[Libreoffice-commits] core.git: include/o3tl

Noel Grandin noel at peralex.com
Wed Nov 4 23:23:44 PST 2015


 include/o3tl/range.hxx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit deb5bae09185ea442f8788664ac5cff0d59a7351
Author: Noel Grandin <noel at peralex.com>
Date:   Thu Nov 5 08:32:22 2015 +0200

    BOOST_ASSERT->assert
    
    Change-Id: Ifbb80c90f8530ebf4660493447c2c076587bebd6
    Reviewed-on: https://gerrit.libreoffice.org/19795
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/include/o3tl/range.hxx b/include/o3tl/range.hxx
index 1a28784..9abfb25 100644
--- a/include/o3tl/range.hxx
+++ b/include/o3tl/range.hxx
@@ -22,7 +22,7 @@
 
 
 #include <cstring>
-#include <boost/assert.hpp>
+#include <cassert>
 
 
 
@@ -106,8 +106,8 @@ range<T>::range( T i_inclusiveLowerBorder,
     :   nBegin(i_inclusiveLowerBorder),
         nEnd(i_exclusiveUpperBorder)
 {
-    BOOST_ASSERT(   nBegin <= nEnd
-                 && "Invalid parameters for range<> constructor.");
+    assert( nBegin <= nEnd
+            && "Invalid parameters for range<> constructor.");
 }
 
 template <class T>
@@ -133,8 +133,8 @@ template <class T>
 inline std::size_t
 range<T>::size() const
 {
-    BOOST_ASSERT(   nBegin <= nEnd
-                 && "Invalid range limits in range<>::size().");
+    assert( nBegin <= nEnd
+            && "Invalid range limits in range<>::size().");
     return static_cast<std::size_t>( end() - begin() );
 }
 


More information about the Libreoffice-commits mailing list