summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpptoolstestcase.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2021-08-27 13:15:46 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2021-08-30 08:21:57 +0000
commit5fe3ead73ef730fa1659bd17af206ec94a428159 (patch)
tree39be30dcb1b4509a6e6fa44ec3f4e935b73659dd /src/plugins/cpptools/cpptoolstestcase.cpp
parent2d994620d1c6de5c2ba085ba50d28be27e27a1fb (diff)
downloadqt-creator-5fe3ead73ef730fa1659bd17af206ec94a428159.tar.gz
CppTools/CppEditor: Rename the TestDocument classes
It was not helpful that we had four different classes with the same name. Note that they look suspiciously similar and could possibly be merged into a single class at some point. Change-Id: I7d4c10a09408226037bc0d276940bca39dc5f576 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cpptoolstestcase.cpp')
-rw-r--r--src/plugins/cpptools/cpptoolstestcase.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/cpptools/cpptoolstestcase.cpp b/src/plugins/cpptools/cpptoolstestcase.cpp
index 9ba361b4ff..47a0d04209 100644
--- a/src/plugins/cpptools/cpptoolstestcase.cpp
+++ b/src/plugins/cpptools/cpptoolstestcase.cpp
@@ -74,13 +74,13 @@ static bool snapshotContains(const CPlusPlus::Snapshot &snapshot, const QSet<QSt
return true;
}
-TestDocument::TestDocument(const QByteArray &fileName, const QByteArray &source, char cursorMarker)
+BaseCppTestDocument::BaseCppTestDocument(const QByteArray &fileName, const QByteArray &source, char cursorMarker)
: m_fileName(QString::fromUtf8(fileName))
, m_source(QString::fromUtf8(source))
, m_cursorMarker(cursorMarker)
{}
-QString TestDocument::filePath() const
+QString BaseCppTestDocument::filePath() const
{
if (!m_baseDirectory.isEmpty())
return QDir::cleanPath(m_baseDirectory + QLatin1Char('/') + m_fileName);
@@ -91,7 +91,7 @@ QString TestDocument::filePath() const
return m_fileName;
}
-bool TestDocument::writeToDisk() const
+bool BaseCppTestDocument::writeToDisk() const
{
return TestCase::writeFile(filePath(), m_source.toUtf8());
}