make AbstractNetworkJob::errorString virtual: it is already overriden
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Mon, 25 Oct 2021 14:29:57 +0000 (16:29 +0200)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Wed, 24 Nov 2021 15:17:47 +0000 (16:17 +0100)
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>
src/libsync/abstractnetworkjob.h
src/libsync/propagateupload.h

index 63391e672e6dc3feb546d88627bc1efc8219f779..04dadb49ecf6ed3bf749a4326db3f445135e2d87 100644 (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.
      *
index 1a547a3b6884e6fbec5f41f3f480978ab9644796..b53cc652042d31fef8cf5615a71c1a0d2d8f7f2d 100644 (file)
@@ -131,7 +131,7 @@ public:
         return _device;
     }
 
-    QString errorString()
+    QString errorString() const override
     {
         return _errorString.isEmpty() ? AbstractNetworkJob::errorString() : _errorString;
     }