summaryrefslogtreecommitdiffstats
path: root/src/tools/qfileinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/qfileinfo.cpp')
-rw-r--r--src/tools/qfileinfo.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/tools/qfileinfo.cpp b/src/tools/qfileinfo.cpp
index 763324d15..466e62cc4 100644
--- a/src/tools/qfileinfo.cpp
+++ b/src/tools/qfileinfo.cpp
@@ -45,7 +45,7 @@
#include "ntqdir.h"
#include "qfiledefs_p.h"
#include "ntqdeepcopy.h"
-#if defined(QT_LARGEFILE_SUPPORT) && !defined(QT_ABI_QT4)
+#if defined(QT_LARGEFILE_SUPPORT)
#include <limits.h>
#endif
@@ -576,18 +576,12 @@ bool TQFileInfo::convertToAbs()
Returns the file size in bytes, or 0 if the file does not exist or
if the size is 0 or if the size cannot be fetched.
*/
-#if defined(QT_ABI_QT4)
-TQIODevice::Offset TQFileInfo::size() const
-#else
uint TQFileInfo::size() const
-#endif
{
if ( !fic || !cache )
doStat();
if ( fic )
-#if defined(QT_ABI_QT4)
- return (TQIODevice::Offset)fic->st.st_size;
-#elif defined(QT_LARGEFILE_SUPPORT)
+#if defined(QT_LARGEFILE_SUPPORT)
return (uint)fic->st.st_size > UINT_MAX ? UINT_MAX : (uint)fic->st.st_size;
#else
return (uint)fic->st.st_size;