diff kdiff3/src-QT4/fileaccess.h @ 101:8463601a34a7

Corrections for file sizes >2GB
author joachim99
date Sat, 31 Jul 2010 21:17:57 +0000
parents 6f42f5bd218e
children
line wrap: on
line diff
--- a/kdiff3/src-QT4/fileaccess.h	Sun Jul 04 20:49:23 2010 +0000
+++ b/kdiff3/src-QT4/fileaccess.h	Sat Jul 31 21:17:57 2010 +0000
@@ -40,8 +40,8 @@
    bool isDir() const;
    bool isSymLink() const;
    bool exists() const;
-   long size() const;            // Size as returned by stat().
-   long sizeForReading();  // If the size can't be determined by stat() then the file is copied to a local temp file.
+   qint64 size() const;            // Size as returned by stat().
+   qint64 sizeForReading();  // If the size can't be determined by stat() then the file is copied to a local temp file.
    bool isReadable() const;
    bool isWritable() const;
    bool isExecutable() const;
@@ -89,7 +89,7 @@
    bool m_bLocal;
    bool m_bValidData;
 
-   unsigned long m_size;
+   qint64 m_size;
    QDateTime m_modificationTime;
    QDateTime m_accessTime;
    QDateTime m_creationTime;
@@ -143,9 +143,9 @@
    bool m_bSuccess;
 
    // Data needed during Job
-   long m_transferredBytes;
+   qint64 m_transferredBytes;
    char* m_pTransferBuffer;  // Needed during get or put
-   long m_maxLength;
+   qint64 m_maxLength;
 
    QString m_filePattern;
    QString m_fileAntiPattern;