| 34 | } |
| 35 | |
| 36 | CheckSetSelectionLockPrivate::CheckSetSelectionLockPrivate(const QString& fileName, |
| 37 | const QString& id) |
| 38 | : lockFile(new QLockFile(fileName.isEmpty() ? fileName : checkSetSelectionFileLockPath(fileName))) |
| 39 | , checkSetSelectionId(id) |
| 40 | { |
| 41 | if (!fileName.isEmpty()) { |
| 42 | if (!lockFile->tryLock(1000)) { |
| 43 | qCWarning(KDEV_CLANGTIDY) |
| 44 | << "Failed to acquire lock file" << fileName |
| 45 | << "error =" << lockFile->error(); |
| 46 | } |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | CheckSetSelectionLock::CheckSetSelectionLock(const QString& fileName, |
| 51 | const QString& checkSetSelectionId) |
nothing calls this directly
no test coverage detected