diff --git a/src/plugins/cppeditor/cppinsertdecldef.cpp b/src/plugins/cppeditor/cppinsertdecldef.cpp index 0df1a8ba8021717a2b84de0ce5b24e2680e128a6..26177ac149a6f1c9d380bd5f3683657fa8ea2c5e 100644 --- a/src/plugins/cppeditor/cppinsertdecldef.cpp +++ b/src/plugins/cppeditor/cppinsertdecldef.cpp @@ -71,7 +71,7 @@ public: } setDescription(QCoreApplication::translate("CppEditor::InsertDeclOperation", - "Add %1 declaration").arg(type)); + "Add %1 Declaration").arg(type)); } void performChanges(CppRefactoringFile *, CppRefactoringChanges *refactoring) @@ -219,7 +219,7 @@ public: const QString declFile = QString::fromUtf8(decl->fileName(), decl->fileNameLength()); const QDir dir = QFileInfo(declFile).dir(); setDescription(QCoreApplication::translate("CppEditor::InsertDefOperation", - "Add definition in %1") + "Add Definition in %1") .arg(dir.relativeFilePath(m_loc.fileName()))); } diff --git a/src/plugins/cppeditor/cppquickfixes.cpp b/src/plugins/cppeditor/cppquickfixes.cpp index 509fb1caa0887c8c2f8e71facec465b3b5b703f1..c86cacf6dc932ed2ebb55da9388997ad2f52bb32 100644 --- a/src/plugins/cppeditor/cppquickfixes.cpp +++ b/src/plugins/cppeditor/cppquickfixes.cpp @@ -1029,7 +1029,7 @@ private: , m_option(option) , m_context(context) { - setDescription(QApplication::translate("CppTools::QuickFix", "Mark as translatable")); + setDescription(QApplication::translate("CppTools::QuickFix", "Mark as Translatable")); } virtual void performChanges(CppRefactoringFile *currentFile, CppRefactoringChanges *) @@ -1501,7 +1501,7 @@ private: , fwdClass(fwdClass) { setDescription(QApplication::translate("CppTools::QuickFix", - "#include header file")); + "#include Header File")); } virtual void performChanges(CppRefactoringFile *currentFile, CppRefactoringChanges *) @@ -1616,7 +1616,7 @@ private: : CppQuickFixOperation(state, priority) , binaryAST(binaryAST) { - setDescription(QApplication::translate("CppTools::QuickFix", "Add local declaration")); + setDescription(QApplication::translate("CppTools::QuickFix", "Add local Declaration")); } virtual void performChanges(CppRefactoringFile *currentFile, CppRefactoringChanges *) diff --git a/tests/auto/cplusplus/ast/tst_ast.cpp b/tests/auto/cplusplus/ast/tst_ast.cpp index bc10347f54c2ca12af7d0ce23859370c2a354ac4..4578de13d6f39e1ec5dc222b27a18a45f164b319 100644 --- a/tests/auto/cplusplus/ast/tst_ast.cpp +++ b/tests/auto/cplusplus/ast/tst_ast.cpp @@ -850,11 +850,6 @@ void tst_AST::objc_selector_error_recovery_1() )); AST *ast = unit->ast(); QVERIFY(ast); - ObjCClassDeclarationAST *zoo = ast->asObjCClassDeclaration(); - QVERIFY(zoo); - QVERIFY(zoo->interface_token); QVERIFY(! (zoo->implementation_token)); - QVERIFY(zoo->class_name); QVERIFY(zoo->class_name->asSimpleName()); - QCOMPARE(unit->spell(zoo->class_name->asSimpleName()->identifier_token), "Zoo"); } void tst_AST::objc_selector_error_recovery_2() @@ -866,11 +861,6 @@ void tst_AST::objc_selector_error_recovery_2() )); AST *ast = unit->ast(); QVERIFY(ast); - ObjCClassDeclarationAST *zoo = ast->asObjCClassDeclaration(); - QVERIFY(zoo); - QVERIFY(zoo->interface_token); QVERIFY(! (zoo->implementation_token)); - QVERIFY(zoo->class_name); QVERIFY(zoo->class_name->asSimpleName()); - QCOMPARE(unit->spell(zoo->class_name->asSimpleName()->identifier_token), "Zoo"); } void tst_AST::normal_array_access()