[Libreoffice-commits] .: sw/inc

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Sep 21 13:08:40 PDT 2012


 sw/inc/unotbl.hxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 6ba1a664a94cfbfbc7c280b15cee35122710ff86
Author: Michael Stahl <mstahl at redhat.com>
Date:   Fri Sep 21 22:03:02 2012 +0200

    fuck you, SIZE_MAX. you'll rue the day i find out which .h defines you.
    
    rue!!!
    
    Change-Id: I9e2b05180ba64d1617b33423ceffc19bc996e335

diff --git a/sw/inc/unotbl.hxx b/sw/inc/unotbl.hxx
index 1d464ef..18a0029 100644
--- a/sw/inc/unotbl.hxx
+++ b/sw/inc/unotbl.hxx
@@ -29,9 +29,6 @@
 #ifndef SW_UNOTBL_HXX
 #define SW_UNOTBL_HXX
 
-#include <limits.h>
-#include <stdint.h>
-
 #include <com/sun/star/container/XNamed.hpp>
 #include <com/sun/star/container/XEnumerationAccess.hpp>
 #include <com/sun/star/util/XSortable.hpp>
@@ -102,7 +99,7 @@ class SwXCell : public SwXCellBaseClass,
 
     // table position where pBox was found last
     size_t nFndPos;
-    static size_t const NOTFOUND = SIZE_MAX;
+    static size_t const NOTFOUND = SAL_MAX_SIZE;
 
 protected:
     virtual const SwStartNode *GetStartNode() const;


More information about the Libreoffice-commits mailing list