mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
Sonarcloud warnings 3 (#1498)
* chore: use ClassName:: for calling static methods * chore: prefer to initialize member data in the class initializer
This commit is contained in:
@@ -61,10 +61,6 @@ private:
|
||||
// Internally stored error handler function. Takes the last response future and returns nothing.
|
||||
using ErrorHandlerFunction = std::function<void (RpcResponseFuture const&)>;
|
||||
|
||||
private slots:
|
||||
void stepFinished();
|
||||
|
||||
private:
|
||||
void runNext(RpcResponseFuture const& response);
|
||||
|
||||
// These overloads convert various forms of input closures to what we store internally.
|
||||
@@ -143,7 +139,6 @@ private:
|
||||
};
|
||||
}
|
||||
|
||||
private:
|
||||
Tag const tag_;
|
||||
static Tag next_tag;
|
||||
bool tolerate_errors_ = {};
|
||||
@@ -151,4 +146,7 @@ private:
|
||||
QQueue<QPair<QueuedFunction, ErrorHandlerFunction>> queue_;
|
||||
ErrorHandlerFunction next_error_handler_;
|
||||
QFutureWatcher<RpcResponse> future_watcher_;
|
||||
|
||||
private slots:
|
||||
void stepFinished();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user