Clang: Use class enum in Document

Change-Id: I754eaf185d10b61db5bd5f622d1912c53f71e79b
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Nikolai Kosjar
2017-05-03 09:36:37 +02:00
parent 30f3fbdd17
commit e811ac4bfe
4 changed files with 12 additions and 8 deletions

View File

@@ -54,9 +54,9 @@ class Documents;
class Document
{
public:
enum FileExistsCheck {
CheckIfFileExists,
DoNotCheckIfFileExists
enum class FileExistsCheck {
Check,
DoNotCheck
};
Document() = default;
@@ -64,7 +64,7 @@ public:
const ProjectPart &projectPart,
const Utf8StringVector &fileArguments,
Documents &documents,
FileExistsCheck fileExistsCheck = CheckIfFileExists);
FileExistsCheck fileExistsCheck = FileExistsCheck::Check);
~Document();
Document(const Document &cxTranslationUnit);