From d2c243464ece44b27e8a03c73b45d9de424adcd8 Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 27 Aug 2014 10:01:27 +0200 Subject: CppEditor: Rename CPPEditor{,Document} to CppEditor{,Document} Better in line with the rest. Change-Id: I692c8b6b9bebf22f059709fb60e53ea04fcb7d53 Reviewed-by: Christian Stenger Reviewed-by: hjk --- src/plugins/cppeditor/cppincludehierarchy_test.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/plugins/cppeditor/cppincludehierarchy_test.cpp') diff --git a/src/plugins/cppeditor/cppincludehierarchy_test.cpp b/src/plugins/cppeditor/cppincludehierarchy_test.cpp index bafcee6d84..ac20877871 100644 --- a/src/plugins/cppeditor/cppincludehierarchy_test.cpp +++ b/src/plugins/cppeditor/cppincludehierarchy_test.cpp @@ -42,9 +42,11 @@ Q_DECLARE_METATYPE(QList) using namespace CPlusPlus; -using namespace CppEditor::Internal; using namespace CppTools; +namespace CppEditor { +namespace Internal { + namespace { QString toString(CppIncludeHierarchyModel &model, const QModelIndex &index, int indent = 0) @@ -69,7 +71,7 @@ QString toString(CppIncludeHierarchyModel &model) + toString(model, model.index(1, 0)); } -class IncludeHierarchyTestCase: public CppEditor::Internal::Tests::TestCase +class IncludeHierarchyTestCase : public Tests::TestCase { public: IncludeHierarchyTestCase(const QList &sourceList, @@ -95,7 +97,7 @@ public: // Open Editor const QString fileName = QDir::tempPath() + QLatin1String("/file1.h"); - CPPEditor *editor; + CppEditor *editor; QVERIFY(openCppEditor(fileName, &editor)); closeEditorAtEndOfTestCase(editor); @@ -182,3 +184,6 @@ void CppEditorPlugin::test_includehierarchy() IncludeHierarchyTestCase(documents, expectedHierarchy); } + +} // namespace CppEditor +} // namespace Internal -- cgit v1.2.3