Generalized the changeset operations.

This commit is contained in:
Roberto Raggi
2010-06-22 10:14:06 +02:00
parent b13d6ae362
commit eb749ec3a2
9 changed files with 121 additions and 187 deletions

View File

@@ -43,22 +43,7 @@ namespace TextEditor {
class TEXTEDITOR_EXPORT RefactoringChanges
{
public:
struct Range {
Range()
: begin(0)
, end(0)
{}
Range(int beginPosition, int endPosition)
: begin(beginPosition)
, end(endPosition)
{}
bool isNull() const
{ return begin == 0 || end == 0; }
int begin;
int end;
};
typedef Utils::ChangeSet::Range Range;
public:
virtual ~RefactoringChanges();