forked from qt-creator/qt-creator
CppTools: modernize
Change-Id: Iaf02e4d026f1ac8b216833d83cd7a735e21ff60a Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -91,7 +91,7 @@ public:
|
||||
|
||||
// Preprocess source
|
||||
Environment env;
|
||||
Preprocessor preprocess(0, &env);
|
||||
Preprocessor preprocess(nullptr, &env);
|
||||
const QByteArray preprocessedSource = preprocess.run(filePath, sourceWithoutCursorMarker);
|
||||
|
||||
Document::Ptr document = Document::create(filePath);
|
||||
@@ -122,7 +122,7 @@ public:
|
||||
Overview overview;
|
||||
overview.showReturnTypes = true;
|
||||
overview.showArgumentNames = true;
|
||||
overview.starBindFlags = Overview::StarBindFlags(0);
|
||||
overview.starBindFlags = Overview::StarBindFlags(nullptr);
|
||||
|
||||
// Run the formatter
|
||||
PointerDeclarationFormatter formatter(cppRefactoringFile, overview, cursorHandling);
|
||||
|
||||
Reference in New Issue
Block a user