forked from qt-creator/qt-creator
Unify Utils::ChangeSet usages
* Remove using Utils::ChangeSet from header files * Remove unused typedef for Range * Add it only in source files that contain many occurrences Change-Id: I60a8b77e2d5a46431507f53b6d60186d511ccf30 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
c5012f258c
commit
04e8b332bb
@@ -48,14 +48,10 @@ using namespace CPlusPlus;
|
||||
using namespace CppTools;
|
||||
using namespace CppTools::Internal;
|
||||
|
||||
using Utils::ChangeSet;
|
||||
|
||||
Q_DECLARE_METATYPE(Overview)
|
||||
|
||||
namespace {
|
||||
|
||||
typedef Utils::ChangeSet::Range Range;
|
||||
|
||||
QString stripCursor(const QString &source)
|
||||
{
|
||||
QString copy(source);
|
||||
@@ -127,7 +123,7 @@ public:
|
||||
|
||||
// Run the formatter
|
||||
PointerDeclarationFormatter formatter(cppRefactoringFile, overview, cursorHandling);
|
||||
ChangeSet change = formatter.format(ast); // ChangeSet may be empty.
|
||||
Utils::ChangeSet change = formatter.format(ast); // ChangeSet may be empty.
|
||||
|
||||
// Apply change
|
||||
QTextCursor changeCursor(textDocument);
|
||||
|
||||
Reference in New Issue
Block a user