OSDN Git Service

correct QFileInfoPrivate::getCachedFlag() return value
authorIvailo Monev <xakepa10@laimg.moc>
Sat, 28 Dec 2019 18:28:45 +0000 (18:28 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Sat, 28 Dec 2019 18:28:45 +0000 (18:28 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/core/io/qfileinfo_p.h

index 3ebbd68..b35e529 100644 (file)
@@ -143,7 +143,7 @@ public:
     mutable qint64 fileSize;
     mutable QDateTime fileTimes[3];
     inline bool getCachedFlag(uint c) const
-    { return cache_enabled ? (cachedFlags & c) : 0; }
+    { return cache_enabled ? (cachedFlags & c) : false; }
     inline void setCachedFlag(uint c) const
     { if (cache_enabled) cachedFlags |= c; }