forked from qt-creator/qt-creator
CppEditor: quick fix to generate getters and setters
This does not take namespaces on the implementation side into account and does not properly position/indent things. Task-number: QTCREATORBUG-1890 Change-Id: I779d12fefc79521bce38361729d4f66dada71147 Reviewed-by: hjk <hjk121@nokiamail.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
@@ -158,6 +158,8 @@ bool ChangeSet::move_helper(int pos, int length, int to)
|
||||
|
||||
bool ChangeSet::insert(int pos, const QString &text)
|
||||
{
|
||||
Q_ASSERT(pos >= 0);
|
||||
|
||||
if (hasOverlap(pos, 0))
|
||||
m_error = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user