forked from qt-creator/qt-creator
Clang: Extract long clock/time_point references
Change-Id: If2790263e9a314f27762c57cf6bf4ef67f93a84b Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -40,12 +40,12 @@ public:
|
||||
UnsavedFilesData();
|
||||
|
||||
public:
|
||||
time_point lastChangeTimePoint;
|
||||
TimePoint lastChangeTimePoint;
|
||||
QVector<UnsavedFile> unsavedFiles;
|
||||
};
|
||||
|
||||
UnsavedFilesData::UnsavedFilesData()
|
||||
: lastChangeTimePoint(std::chrono::steady_clock::now())
|
||||
: lastChangeTimePoint(Clock::now())
|
||||
{
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ UnsavedFilesShallowArguments UnsavedFiles::shallowArguments() const
|
||||
return UnsavedFilesShallowArguments(*this);
|
||||
}
|
||||
|
||||
const time_point UnsavedFiles::lastChangeTimePoint() const
|
||||
const TimePoint UnsavedFiles::lastChangeTimePoint() const
|
||||
{
|
||||
return d->lastChangeTimePoint;
|
||||
}
|
||||
@@ -154,7 +154,7 @@ void UnsavedFiles::addOrUpdateUnsavedFile(const FileContainer &fileContainer)
|
||||
|
||||
void UnsavedFiles::updateLastChangeTimePoint()
|
||||
{
|
||||
d->lastChangeTimePoint = std::chrono::steady_clock::now();
|
||||
d->lastChangeTimePoint = Clock::now();
|
||||
}
|
||||
|
||||
} // namespace ClangBackEnd
|
||||
|
||||
Reference in New Issue
Block a user