make AbstractNetworkJob::errorString virtual: it is already overriden

in practice AbstractNetworkJob::errorString is already overriden but the
overrided code is probably never called while the intention looked like
the opposite

fix that by making the method virtual in base class

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2021-10-25 16:29:57 +02:00
parent f575cc1860
commit 802c7ac906
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ public:
bool timedOut() const { return _timedout; }
/** Returns an error message, if any. */
QString errorString() const;
virtual QString errorString() const;
/** Like errorString, but also checking the reply body for information.
*

View File

@ -131,7 +131,7 @@ public:
return _device;
}
QString errorString()
QString errorString() const override
{
return _errorString.isEmpty() ? AbstractNetworkJob::errorString() : _errorString;
}