forked from qt-creator/qt-creator
Utils: Make DeviceFileHooks access a bit more self-contained
Change-Id: Ib13035820021e9eda0585f98885bef9cbd2317a6 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -65,6 +65,11 @@ namespace Utils {
|
||||
|
||||
static DeviceFileHooks s_deviceHooks;
|
||||
|
||||
DeviceFileHooks &DeviceFileHooks::instance()
|
||||
{
|
||||
return s_deviceHooks;
|
||||
}
|
||||
|
||||
|
||||
static bool removeRecursivelyLocal(const FilePath &filePath, QString *error)
|
||||
{
|
||||
@@ -118,11 +123,6 @@ static bool removeRecursivelyLocal(const FilePath &filePath, QString *error)
|
||||
return true;
|
||||
}
|
||||
|
||||
void FilePath::setDeviceFileHooks(const DeviceFileHooks &hooks)
|
||||
{
|
||||
s_deviceHooks = hooks;
|
||||
}
|
||||
|
||||
/*!
|
||||
If this is a directory, the function will recursively check all files and return
|
||||
true if one of them is newer than \a timeStamp. If this is a single file, true will
|
||||
|
||||
Reference in New Issue
Block a user