forked from qt-creator/qt-creator
CppEditor: Pass some values by reference
Change-Id: I18af0c97c22ef2189ebaeaacd32030b22f838c3d Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
ee26fdf32c
commit
278eb8f93d
@@ -116,7 +116,7 @@ public:
|
||||
private:
|
||||
/// Move word camel case wise from current cursor position until given token (not included)
|
||||
/// and execute the tokenActions for each new position.
|
||||
static void moveWordCamelCaseToToken(TranslationUnit *translationUnit, Token token,
|
||||
static void moveWordCamelCaseToToken(TranslationUnit *translationUnit, const Token &token,
|
||||
CPPEditor *editor, const Actions &tokenActions);
|
||||
|
||||
static void undoAllChangesAndCloseAllEditors();
|
||||
@@ -282,8 +282,10 @@ void TestActionsTestCase::executeActionsOnEditorWidget(CPPEditorWidget *editorWi
|
||||
QApplication::processEvents();
|
||||
}
|
||||
|
||||
void TestActionsTestCase::moveWordCamelCaseToToken(TranslationUnit *translationUnit, Token token,
|
||||
CPPEditor *editor, const Actions &tokenActions)
|
||||
void TestActionsTestCase::moveWordCamelCaseToToken(TranslationUnit *translationUnit,
|
||||
const Token &token,
|
||||
CPPEditor *editor,
|
||||
const Actions &tokenActions)
|
||||
{
|
||||
QVERIFY(translationUnit);
|
||||
QVERIFY(editor);
|
||||
|
||||
Reference in New Issue
Block a user