mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 13:25:52 +03:00
PropagatorJob: Remove unneccessary pointer #5453
This commit is contained in:
parent
29b39acfbe
commit
cd9e88ad22
2 changed files with 9 additions and 4 deletions
|
@ -573,9 +573,16 @@ OwncloudPropagator::DiskSpaceResult OwncloudPropagator::diskSpaceCheck() const
|
|||
|
||||
// ================================================================================
|
||||
|
||||
PropagatorJob::PropagatorJob(OwncloudPropagator *propagator)
|
||||
: QObject(propagator)
|
||||
, _state(NotYetStarted)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
OwncloudPropagator *PropagatorJob::propagator() const
|
||||
{
|
||||
return _propagator;
|
||||
return qobject_cast<OwncloudPropagator*>(parent());
|
||||
}
|
||||
|
||||
PropagatorJob::JobParallelism PropagateDirectory::parallelism()
|
||||
|
|
|
@ -56,11 +56,9 @@ class OwncloudPropagator;
|
|||
*/
|
||||
class PropagatorJob : public QObject {
|
||||
Q_OBJECT
|
||||
private:
|
||||
OwncloudPropagator *_propagator;
|
||||
|
||||
public:
|
||||
explicit PropagatorJob(OwncloudPropagator* propagator) : _propagator(propagator), _state(NotYetStarted) {}
|
||||
explicit PropagatorJob(OwncloudPropagator* propagator);
|
||||
|
||||
enum JobState {
|
||||
NotYetStarted,
|
||||
|
|
Loading…
Reference in a new issue