Make `readMockFile()` static and `MockedReply` final

This commit is contained in:
Martchus 2022-06-07 10:43:48 +02:00
parent 54b9b5e7cd
commit 835ba78b85
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ static string events[7];
/*!
* \brief Returns the contents of the specified file and exits with an error message if an error occurs.
*/
string readMockFile(const string &filePath)
static string readMockFile(const string &filePath)
{
try {
return readFile(filePath);

View File

@ -25,7 +25,7 @@ void setupTestData();
/*!
* \brief The MockedReply class provides a fake QNetworkReply which will just return data from a specified buffer.
*/
class MockedReply : public QNetworkReply {
class MockedReply final : public QNetworkReply {
Q_OBJECT
public: