mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00
kio: replace KIO::SimpleJobPrivate::simpleJobInit() with its body
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
c20c6cc64f
commit
2186a064bb
2 changed files with 6 additions and 15 deletions
|
@ -252,24 +252,17 @@ MetaData Job::outgoingMetaData() const
|
|||
SimpleJob::SimpleJob(SimpleJobPrivate &dd)
|
||||
: Job(dd)
|
||||
{
|
||||
d_func()->simpleJobInit();
|
||||
}
|
||||
|
||||
void SimpleJobPrivate::simpleJobInit()
|
||||
{
|
||||
Q_Q(SimpleJob);
|
||||
if (!m_url.isValid())
|
||||
{
|
||||
q->setError( ERR_MALFORMED_URL );
|
||||
q->setErrorText( m_url.url() );
|
||||
QTimer::singleShot(0, q, SLOT(slotFinished()) );
|
||||
Q_D(SimpleJob);
|
||||
if (!d->m_url.isValid()) {
|
||||
setError(ERR_MALFORMED_URL);
|
||||
setErrorText(d->m_url.url());
|
||||
QTimer::singleShot(0, this, SLOT(slotFinished()));
|
||||
return;
|
||||
}
|
||||
|
||||
Scheduler::doJob(q);
|
||||
Scheduler::doJob(this);
|
||||
}
|
||||
|
||||
|
||||
bool SimpleJob::doKill()
|
||||
{
|
||||
Q_D(SimpleJob);
|
||||
|
|
|
@ -140,8 +140,6 @@ namespace KIO {
|
|||
int m_schedSerial;
|
||||
bool m_redirectionHandlingEnabled;
|
||||
|
||||
void simpleJobInit();
|
||||
|
||||
/**
|
||||
* Forward signal from the slave.
|
||||
* @param data_size the processed size in bytes
|
||||
|
|
Loading…
Add table
Reference in a new issue