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:
@@ -36,8 +36,8 @@ namespace CppTools {
|
||||
class CppRefactoringChanges;
|
||||
class CppRefactoringFile;
|
||||
class CppRefactoringChangesData;
|
||||
typedef QSharedPointer<CppRefactoringFile> CppRefactoringFilePtr;
|
||||
typedef QSharedPointer<const CppRefactoringFile> CppRefactoringFileConstPtr;
|
||||
using CppRefactoringFilePtr = QSharedPointer<CppRefactoringFile>;
|
||||
using CppRefactoringFileConstPtr = QSharedPointer<const CppRefactoringFile>;
|
||||
|
||||
class CPPTOOLS_EXPORT CppRefactoringFile: public TextEditor::RefactoringFile
|
||||
{
|
||||
@@ -69,7 +69,7 @@ public:
|
||||
protected:
|
||||
CppRefactoringFile(const QString &fileName, const QSharedPointer<TextEditor::RefactoringChangesData> &data);
|
||||
CppRefactoringFile(QTextDocument *document, const QString &fileName);
|
||||
CppRefactoringFile(TextEditor::TextEditorWidget *editor);
|
||||
explicit CppRefactoringFile(TextEditor::TextEditorWidget *editor);
|
||||
|
||||
CppRefactoringChangesData *data() const;
|
||||
void fileChanged() override;
|
||||
@@ -82,7 +82,7 @@ protected:
|
||||
class CPPTOOLS_EXPORT CppRefactoringChanges: public TextEditor::RefactoringChanges
|
||||
{
|
||||
public:
|
||||
CppRefactoringChanges(const CPlusPlus::Snapshot &snapshot);
|
||||
explicit CppRefactoringChanges(const CPlusPlus::Snapshot &snapshot);
|
||||
|
||||
static CppRefactoringFilePtr file(TextEditor::TextEditorWidget *editor,
|
||||
const CPlusPlus::Document::Ptr &document);
|
||||
|
||||
Reference in New Issue
Block a user