]> git.lyx.org Git - lyx.git/blobdiff - src/support/FileName.cpp
Fix Coverity false positive for null-pointer dereference
[lyx.git] / src / support / FileName.cpp
index 505b485d7f1f7fe2871e54ffe9ebc1b1c57dd45b..179fef46ee92e2b419fd8f18e33d74b162a3472c 100644 (file)
@@ -28,7 +28,7 @@
 #include <QFileInfo>
 #include <QList>
 #include <QTemporaryFile>
-#include <QTime>
+#include <QElapsedTimer>
 
 #ifdef _WIN32
 #include <QThread>
@@ -563,7 +563,7 @@ unsigned long FileName::checksum() const
        }
 
        // This is used in the debug output at the end of the method.
-       static QTime t;
+       static QElapsedTimer t;
        if (lyxerr.debugging(Debug::FILES))
                t.restart();