[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kdecore/io
From:       Raphael Kubo da Costa <kubito () gmail ! com>
Date:       2010-10-18 13:22:34
Message-ID: 20101018132234.C137CAC896 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1187156 by rkcosta:

Take qint64's instead of int's in KLimitedIODevice's constructor.

The class attributes were already qint64, and receiving int's made it fail on huge (2GB+) files.

Ack-ed by dfaure.

CCBUG: 216672


 M  +1 -1      klimitediodevice.cpp  
 M  +1 -1      klimitediodevice_p.h  


--- trunk/KDE/kdelibs/kdecore/io/klimitediodevice.cpp #1187155:1187156
@@ -18,7 +18,7 @@
 
 #include "klimitediodevice_p.h"
 
-KLimitedIODevice::KLimitedIODevice( QIODevice *dev, int start, int length )
+KLimitedIODevice::KLimitedIODevice( QIODevice *dev, qint64 start, qint64 length )
     : m_dev( dev ), m_start( start ), m_length( length )
 {
     //kDebug(7005) << "start=" << start << "length=" << length;
--- trunk/KDE/kdelibs/kdecore/io/klimitediodevice_p.h #1187155:1187156
@@ -38,7 +38,7 @@
      * @param start where to start reading (position in bytes)
      * @param length the length of the data to read (in bytes)
      */
-    KLimitedIODevice( QIODevice *dev, int start, int length );
+    KLimitedIODevice( QIODevice *dev, qint64 start, qint64 length );
     virtual ~KLimitedIODevice() {}
 
     virtual bool isSequential() const;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic