Make `readMockFile()` static and `MockedReply` final
This commit is contained in:
parent
54b9b5e7cd
commit
835ba78b85
|
@ -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);
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue