ext/embed/sunscraperlibrary.cpp in sunscraper-1.1.0.beta3 vs ext/embed/sunscraperlibrary.cpp in sunscraper-1.2.0.beta1

- old
+ new

@@ -1,20 +1,10 @@ #include "sunscraperlibrary.h" -#include "sunscraperworker.h" +#include "sunscraperthread.h" #include <QtDebug> SunscraperLibrary SunscraperLibrary::m_instance; SunscraperLibrary::SunscraperLibrary() { - SunscraperWorker::invoke(); -} - -SunscraperLibrary::~SunscraperLibrary() -{ - /* Do nothing. This is on purpose. */ -} - -SunscraperLibrary *SunscraperLibrary::instance() -{ - return &m_instance; + SunscraperThread::invoke(); }