修订版 | 973920208ed80189fe9795ac097630b314ea3a12 (tree) |
---|---|
时间 | 2010-02-12 22:26:22 |
作者 | nogu <nogu@user...> |
Commiter | nogu |
Remove Access::init()
Access::init() is called from the constructor of Access class.
@@ -34,21 +34,12 @@ | ||
34 | 34 | using namespace Kita; |
35 | 35 | |
36 | 36 | |
37 | -Access::Access(const KUrl& datUrl) : m_datUrl(datUrl), m_currentJob(0) | |
37 | +Access::Access(const KUrl& datUrl) | |
38 | +: m_datUrl(datUrl), m_currentJob(0), m_header("HTTP/1.1 200 ") /* dummy */, | |
39 | + m_dataSize(0), m_readNum(0) | |
38 | 40 | { |
39 | - init(); | |
40 | -} | |
41 | - | |
42 | -/* public */ | |
43 | -void Access::init() | |
44 | -{ | |
45 | - m_readNum = 0; | |
46 | - m_lastLine.clear(); | |
47 | 41 | BoardDatabase db(m_datUrl); |
48 | 42 | m_bbstype = db.type(); |
49 | - m_header = "HTTP/1.1 200 "; /* dummy header */ | |
50 | - m_dataSize = 0; | |
51 | - m_threadData.clear(); | |
52 | 43 | } |
53 | 44 | |
54 | 45 | /* read data from cache, then emit data to DatInfo. */ /* public */ |
@@ -35,7 +35,6 @@ namespace Kita | ||
35 | 35 | Access(const KUrl& datUrl); |
36 | 36 | virtual ~Access() {}; |
37 | 37 | |
38 | - void init(); | |
39 | 38 | QString get(); |
40 | 39 | void killJob(); |
41 | 40 | void stopJob(); |