Urmpf...

-- 
André Pönitz .............................................. [EMAIL PROTECTED]
Index: types.h
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/types.h,v
retrieving revision 1.2
diff -u -p -r1.2 types.h
--- types.h     2001/11/29 17:12:21     1.2
+++ types.h     2001/11/30 15:11:12
@@ -7,29 +7,29 @@
 
 
 // this probably could be improved by using <cstddef>...
-#include <vector>
+#include <cstddef>
 
 namespace lyx
 {
        /// a type for positions used in paragraphs
        // needs to be signed for a while to hold the special value -1 that is
        // used there...
-       typedef std::vector<char>::difference_type   pos_type;
+       typedef std::ptrdiff_t  pos_type;
 
 
 // set this to '0' if you want to have really safe types
 #if 1
 
        /// a type for sizes
-       typedef std::vector<char>::size_type         size_type;
+       typedef std::size_t  size_type;
 
        /// a type used for numbering layouts   within a text class
        // used to be LyXTextClass::size_type
-       typedef std::vector<char>::size_type         layout_type;
+       typedef std::size_t  layout_type;
 
        /// a type used for numbering text classes
        // used to be LyXTextClassList::size_type
-       typedef std::vector<char>::size_type         textclass_type;
+       typedef std::size_t  textclass_type;
 
 #else
 
@@ -39,7 +39,7 @@ namespace lyx
 
        struct size_type {
                ///
-               typedef std::vector<char>::size_type  base_type;
+               typedef std::size_t base_type;
                ///
                size_type(base_type t) { data_ = t; }
                ///
@@ -52,7 +52,7 @@ namespace lyx
 
        struct layout_type {
                ///
-               typedef std::vector<char>::size_type  base_type;
+               typedef std::size_t base_type;
                ///
                layout_type(base_type t) { data_ = t; }
                ///

Reply via email to