logic: Retrieving StorageNodes for Autocompletion and FileInfos for modification time at once
Had only a small impact on performance unfortunately.
This commit is contained in:
@@ -2,17 +2,15 @@
|
||||
|
||||
FileInfo::FileInfo()
|
||||
: path(FilePath(""))
|
||||
, lastWriteTime(boost::posix_time::not_a_date_time)
|
||||
{
|
||||
}
|
||||
|
||||
FileInfo::FileInfo(const FilePath& path)
|
||||
: path(path)
|
||||
, lastWriteTime(boost::posix_time::not_a_date_time)
|
||||
{
|
||||
}
|
||||
|
||||
FileInfo::FileInfo(const FilePath& path, boost::posix_time::ptime lastWriteTime)
|
||||
FileInfo::FileInfo(const FilePath& path, const TimePoint& lastWriteTime)
|
||||
: path(path)
|
||||
, lastWriteTime(lastWriteTime)
|
||||
{
|
||||
|
||||
@@ -6,15 +6,16 @@
|
||||
#include "boost/date_time.hpp"
|
||||
|
||||
#include "utility/file/FilePath.h"
|
||||
#include "utility/TimePoint.h"
|
||||
|
||||
struct FileInfo
|
||||
{
|
||||
FileInfo();
|
||||
FileInfo(const FilePath& path);
|
||||
FileInfo(const FilePath& path, boost::posix_time::ptime lastWriteTime);
|
||||
FileInfo(const FilePath& path, const TimePoint& lastWriteTime);
|
||||
|
||||
FilePath path;
|
||||
boost::posix_time::ptime lastWriteTime;
|
||||
TimePoint lastWriteTime;
|
||||
};
|
||||
|
||||
#endif // FILE_INFO_H
|
||||
|
||||
Reference in New Issue
Block a user