コミットメタ情報

リビジョンfe841795e3a003e8c38d7535fcc892c242f62457 (tree)
日時2010-02-17 22:51:52
作者nogu <nogu@user...>
コミッターnogu

ログメッセージ

Use //' style comments

変更サマリ

差分

--- a/src/bbsview.cpp
+++ b/src/bbsview.cpp
@@ -54,7 +54,7 @@ struct Kita::Category
5454
5555 BBSView::BBSView(QWidget *parent) : QWidget(parent), m_favorites(0)
5656 {
57- /* copied from Base class */
57+ // copied from Base class
5858 bbsViewBaseLayout = new QVBoxLayout(this);
5959
6060 layout10 = new QHBoxLayout(0);
@@ -72,7 +72,7 @@ BBSView::BBSView(QWidget *parent) : QWidget(parent), m_favorites(0)
7272 m_boardList->setRootIsDecorated(true);
7373 bbsViewBaseLayout->addWidget(m_boardList);
7474 resize(QSize(600, 482).expandedTo(minimumSizeHint()));
75- /* copy end */
75+ // copy end
7676
7777 m_boardList->setHeaderLabel(i18nc("@title:column", "Board Name"));
7878 m_boardList->header()->setClickable(false);
@@ -133,7 +133,7 @@ bool BBSView::downloadBoardList()
133133 QList<Category> categoryList = getCategoryList(html);
134134 QList<Category>::iterator it;
135135
136- /* Are there new boards or moved boards ? */
136+ // Are there new boards or moved boards?
137137 QString newBoards;
138138 QString oldBoards;
139139 for (it = categoryList.begin(); it != categoryList.end(); ++it) {
@@ -167,7 +167,7 @@ bool BBSView::downloadBoardList()
167167
168168 const int maxNewBoard = 64;
169169
170- /* show new board names */
170+ // show new board names
171171 if (!newBoards.isEmpty() && newBoards.count("\n") < maxNewBoard) {
172172
173173 QStringList boardList = newBoards.split('\n');
@@ -176,7 +176,7 @@ bool BBSView::downloadBoardList()
176176 boardList, "Kita");
177177 }
178178
179- /* show moved board names */
179+ // show moved board names
180180 if (!oldBoards.isEmpty()) {
181181
182182 QStringList boardList = oldBoards.split('\n');
@@ -218,7 +218,7 @@ bool BBSView::downloadBoardList()
218218 db.moveBoard(oldUrl, newUrl);
219219 }
220220
221- /* save config */
221+ // save config
222222 QString configPath = KStandardDirs::locateLocal("appdata", "board_list");
223223 KConfig config(configPath);
224224 for (it = categoryList.begin(); it != categoryList.end(); ++it) {
--- a/src/boardview.cpp
+++ b/src/boardview.cpp
@@ -119,7 +119,7 @@ void BoardView::loadBoard(const KUrl& url, bool online)
119119 m_readNum = 0;
120120 m_newNum = 0;
121121
122- /* get list of pointers of Thread classes */
122+ // get list of pointers of Thread classes
123123 QList<Thread*> oldLogList;
124124 QList<Thread*> threadList;
125125 BoardDatabase db(m_boardUrl);
@@ -168,7 +168,7 @@ void BoardView::loadBoard(const KUrl& url, bool online)
168168 subjectList->setFocus();
169169 updateKindLabel();
170170
171- /* restore column size */
171+ // restore column size
172172 loadLayout();
173173 loadHeaderOnOff();
174174 m_enableSizeChange = true;
@@ -273,26 +273,26 @@ void BoardView::updateRow(int row, const KUrl& datUrl,
273273 subjectList->item(row, ColumnSpeed)
274274 ->setText(QString(" %1 ").arg(speed, 0, 'f', 2));
275275
276- /* set mark order */
276+ // set mark order
277277 QTableWidgetItem *item = subjectList->item(row, ColumnMark);
278278 int orderValue;
279- if (!id) { /* old thread */
279+ if (!id) { // old thread
280280 orderValue = ThreadOld;
281281 } else if (readNum > 0 && (resNum > readNum || resNum > viewPos)) {
282- /* There are new responses. */
282+ // There are new responses.
283283 item->setIcon(QIcon(SmallIcon("unread")));
284284 m_unreadNum++;
285285 orderValue = ThreadHasUnread;
286- } else if (readNum > 0) { /* Cache exists */
286+ } else if (readNum > 0) { // Cache exists
287287 item->setIcon(QIcon(SmallIcon("read")));
288288 m_readNum++;
289289 orderValue = (viewPos > 1000) ? ThreadReaded : ThreadRead;
290290 } else if (since.secsTo(current) < 3600 * GlobalConfig::markTime()) {
291- /* new thread */
291+ // new thread
292292 item->setIcon(QIcon(SmallIcon("newthread")));
293293 m_newNum++;
294294 orderValue = ThreadNew;
295- } else { /* normal */
295+ } else { // normal
296296 item->setIcon(QIcon());
297297 orderValue = ThreadNormal;
298298 }
@@ -300,7 +300,7 @@ void BoardView::updateRow(int row, const KUrl& datUrl,
300300
301301 // no effect: m_unreadNum, m_readNum, m_newNum, markOrder
302302 if (datManager.isMainThreadOpened() && resNum == readNum) {
303- /* opened */
303+ // opened
304304 subjectList->item(row, ColumnMark)->setIcon(QIcon(SmallIcon("open")));
305305 }
306306 }
--- a/src/domtree.cpp
+++ b/src/domtree.cpp
@@ -28,13 +28,13 @@ DomTree::DomTree(const DOM::HTMLDocument& hdoc, const KUrl& datUrl)
2828 m_bufSize = 0;
2929 m_bottomNum = 0;
3030
31- /* create the nodes of footer, header, etc. */
31+ // create the nodes of footer, header, etc.
3232 createKokoyon();
3333 createFooter();
3434 createHeader();
3535
36- /* get pointer of DatInfo */
37- /* Note that m_datURL is already locked in the HTMLPart. */
36+ // get pointer of DatInfo
37+ // Note that m_datURL is already locked in the HTMLPart.
3838 m_datInfo = DatManager(datUrl).getDatInfoPointer();
3939 }
4040
@@ -50,12 +50,12 @@ bool DomTree::createResElement(int num)
5050 Q_ASSERT(m_datInfo != 0);
5151
5252 if (num < m_bufSize && m_resStatus[ num ] != HTML_NOTPARSED) {
53- /* already parsed */
53+ // already parsed
5454 return true;
5555 }
5656
5757 if (num >= m_bufSize) {
58- /* resize buffer size */
58+ // resize buffer size
5959 if (m_bufSize == 0) m_bufSize = 100;
6060 while (num >= m_bufSize) m_bufSize += 500;
6161
@@ -73,7 +73,7 @@ bool DomTree::createResElement(int num)
7373 }
7474 }
7575
76- /* cleate elements */
76+ // cleate elements
7777 QString titleHTML, bodyHTML;
7878 m_resStatus[ num ] = m_datInfo->getHTML(num, true, titleHTML, bodyHTML);
7979
@@ -118,7 +118,7 @@ void DomTree::redraw(bool force)
118118
119119 int readNum = m_datInfo->getReadNum();
120120
121- /* don't forget to reset abone here... */
121+ // don't forget to reset abone here...
122122 m_datInfo->resetAbone();
123123
124124 for (int i = 1; i <= readNum; i++) {
@@ -226,16 +226,16 @@ void DomTree::updateHeader(DOM::Element& headerElement)
226226 DOM::Element backupElement1, backupElement2, backupElement3;
227227 int readNum = m_datInfo->getReadNum();
228228
229- /* remove <a href="#tosaigo"> and <BR> */
230- backupElement1 = headerElement.removeChild(headerElement.lastChild()); /* BR */
231- backupElement2 = headerElement.removeChild(headerElement.lastChild()); /* BR */
232- backupElement3 = headerElement.removeChild(headerElement.lastChild()); /* "#tosaigo" */
229+ // remove <a href="#tosaigo"> and <BR>
230+ backupElement1 = headerElement.removeChild(headerElement.lastChild()); // BR
231+ backupElement2 = headerElement.removeChild(headerElement.lastChild()); // BR
232+ backupElement3 = headerElement.removeChild(headerElement.lastChild()); // "#tosaigo"
233233
234- DOM::Node node = headerElement.firstChild(); /* node is now "#kokomade_yonda" */
235- node = node.nextSibling(); /* " " */
234+ DOM::Node node = headerElement.firstChild(); // node is now "#kokomade_yonda"
235+ node = node.nextSibling(); // " "
236236 node = node.nextSibling();
237237
238- /* '1-', '101-' などのリンクを作成 */
238+ // '1-', '101-' などのリンクを作成
239239 for (int num = 1; num < readNum ; num += 100) {
240240 if (node == 0) {
241241 QString href = QString("#%1").arg(num);
@@ -251,10 +251,10 @@ void DomTree::updateHeader(DOM::Element& headerElement)
251251 }
252252 }
253253
254- /* restore <a href="#tosaigo"> and <BR> */
255- headerElement.appendChild(backupElement3); /* "#tosaigo" */
256- headerElement.appendChild(backupElement2); /* BR */
257- headerElement.appendChild(backupElement1); /* BR */
254+ // restore <a href="#tosaigo"> and <BR>
255+ headerElement.appendChild(backupElement3); // "#tosaigo"
256+ headerElement.appendChild(backupElement2); // BR
257+ headerElement.appendChild(backupElement1); // BR
258258 }
259259
260260 /*
@@ -271,13 +271,13 @@ void DomTree::updateFooter(DOM::Element& footerElement)
271271 DOM::Element backupElement;
272272 int readNum = m_datInfo->getReadNum();
273273
274- backupElement = footerElement.removeChild(footerElement.lastChild()); /* "#tosaigo" */
274+ backupElement = footerElement.removeChild(footerElement.lastChild()); // "#tosaigo"
275275
276- DOM::Node node = footerElement.firstChild(); /* node is now "#kokomade_yonda" */
277- node = node.nextSibling(); /* " " */
276+ DOM::Node node = footerElement.firstChild(); // node is now "#kokomade_yonda"
277+ node = node.nextSibling(); // " "
278278 node = node.nextSibling();
279279
280- /* '1-', '101-' などのリンクを作成 */
280+ // '1-', '101-' などのリンクを作成
281281 for (int num = 1; num < readNum ; num += 100) {
282282 if (node == 0) {
283283 QString href = QString("#%1").arg(num);
@@ -293,7 +293,7 @@ void DomTree::updateFooter(DOM::Element& footerElement)
293293 }
294294 }
295295
296- footerElement.appendChild(backupElement); /* "#tosaigo" */
296+ footerElement.appendChild(backupElement); // "#tosaigo"
297297 }
298298
299299 /*
--- a/src/htmlpart.cpp
+++ b/src/htmlpart.cpp
@@ -68,12 +68,12 @@ void HTMLPart::clearPart()
6868 {
6969 slotDeletePopup();
7070
71- /* delete DomTree */
71+ // delete DomTree
7272 delete m_domtree;
7373 m_domtree = 0;
7474
7575 DatManager datManager(m_datUrl);
76- /* update ViewPos */
76+ // update ViewPos
7777 if (m_mode == HTMLPART_MODE_MAINPART && !m_updatedKokoyon
7878 && !m_datUrl.isEmpty()) {
7979 int readNum = datManager.getReadNum();
@@ -83,24 +83,24 @@ void HTMLPart::clearPart()
8383 }
8484 m_updatedKokoyon = false;
8585
86- /* clear variables */
86+ // clear variables
8787 m_anchorStack.clear();
8888 m_centerNum = 0;
8989 m_jumpNumAfterLoading = 0;
9090 findTextInit();
9191
92- if (!m_datUrl.isEmpty()) { /* This part is opened. */
93- /* This part is on the main thread view. */
92+ if (!m_datUrl.isEmpty()) { // This part is opened.
93+ // This part is on the main thread view.
9494 if (m_mode == HTMLPART_MODE_MAINPART) {
9595
96- /* tell Thread class that "thread is closed" */
96+ // tell Thread class that "thread is closed"
9797 datManager.setMainThreadOpened(false);
9898
99- /* emit "deactivated all thread view" SIGNAL */
99+ // emit "deactivated all thread view" SIGNAL
100100 KUrl nullUrl("");
101101 ViewMediator::getInstance()->changeWriteTab(nullUrl);
102102
103- /* update subject tab. */
103+ // update subject tab.
104104 }
105105 }
106106
@@ -121,25 +121,25 @@ bool HTMLPart::setup(int mode, const KUrl& url)
121121 m_mode = mode;
122122
123123 if (m_mode == HTMLPART_MODE_MAINPART) {
124- /* This part is on the main thread view. */
124+ // This part is on the main thread view.
125125 DatManager datManager(m_datUrl);
126- /* create DatInfo explicitly to open new thread. */
127- /* Usually, DatInfo is NOT created if ReadNum == 0.*/
128- /* See also DatManager::createDatInfo() and */
129- /* DatManager::getDatInfo(). */
126+ // create DatInfo explicitly to open new thread.
127+ // Usually, DatInfo is NOT created if ReadNum == 0.
128+ // See also DatManager::createDatInfo() and
129+ // DatManager::getDatInfo().
130130 datManager.createDatInfo();
131131
132- /* tell Thread class that "thread is opened" */
132+ // tell Thread class that "thread is opened"
133133 datManager.setMainThreadOpened(true);
134134
135- /* reset abone */
135+ // reset abone
136136 datManager.resetAbone();
137137 }
138138
139- /* create HTML Document */
139+ // create HTML Document
140140 createHTMLDocument();
141141
142- /* create DOM manager */
142+ // create DOM manager
143143 if (m_mode == HTMLPART_MODE_MAINPART) {
144144 m_domtree = new DomTree(htmlDocument(), m_datUrl);
145145 }
@@ -151,7 +151,7 @@ bool HTMLPart::setup(int mode, const KUrl& url)
151151 /* private */
152152 void HTMLPart::connectSignals()
153153 {
154- /* popup */
154+ // popup
155155 connect(this, SIGNAL(onURL(const QString&)), SLOT(slotOnUrl(const QString&)));
156156
157157 connect(view(), SIGNAL(leave()), SLOT(slotLeave()));
@@ -164,7 +164,7 @@ void HTMLPart::connectSignals()
164164 /* private */
165165 void HTMLPart::createHTMLDocument()
166166 {
167- /* style */
167+ // style
168168 QString style = QString("body { font-size: %1pt; font-family: \"%2\"; color: %3; background-color: %4; }")
169169 .arg(GlobalConfig::threadFont().pointSize())
170170 .arg(GlobalConfig::threadFont().family())
@@ -179,10 +179,9 @@ void HTMLPart::createHTMLDocument()
179179 setJScriptEnabled(false);
180180 setJavaEnabled(false);
181181
182- /* Use dummy URL here, and protocol should be "file:".
183- If protocol is "http:", local image files are not shown
184- (for security reasons ?).
185- */
182+ // Use dummy URL here, and protocol should be "file:".
183+ // If protocol is "http:", local image files are not shown
184+ // (for security reasons?).
186185 begin(KUrl("file:/dummy.htm"));
187186 write(text);
188187 end();
@@ -248,19 +247,19 @@ void HTMLPart::updateScreen(bool showHeaderEtc, bool clock)
248247 return ;
249248 }
250249
251- /* show clock cursor */
250+ // show clock cursor
252251 if (clock) {
253252 QCursor qc; qc.setShape(Qt::WaitCursor);
254253 QApplication::setOverrideCursor(qc);
255254 }
256255
257- /* show header, footer, and kokomadeyonda, etc. */
256+ // show header, footer, and kokomadeyonda, etc.
258257 if (showHeaderEtc) {
259258 m_domtree->appendKokoyon();
260259 m_domtree->appendFooterAndHeader();
261260 }
262261
263- /* change color of number of the res which is responsed. */
262+ // change color of number of the res which is responsed.
264263 if (m_mode == HTMLPART_MODE_MAINPART) {
265264
266265 if (GlobalConfig::checkResponsed()) {
@@ -268,13 +267,13 @@ void HTMLPart::updateScreen(bool showHeaderEtc, bool clock)
268267 }
269268 }
270269
271- /* update display */
270+ // update display
272271 htmlDocument().applyChanges();
273272 view()->layout();
274273 view()->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
275274 view()->setFocus();
276275
277- /* restore cursor */
276+ // restore cursor
278277 if (clock) {
279278 QApplication::restoreOverrideCursor();
280279 }
@@ -360,7 +359,7 @@ bool HTMLPart::reload(int jumpNum)
360359 {
361360 if (!m_domtree) return false;
362361 if (m_mode != HTMLPART_MODE_MAINPART) {
363- /* If this is not MainPart, then open MainPart. */
362+ // If this is not MainPart, then open MainPart.
364363 ViewMediator::getInstance()->openUrl(m_datUrl);
365364 return false;
366365 }
@@ -369,7 +368,7 @@ bool HTMLPart::reload(int jumpNum)
369368 if (m_centerNum == 0) m_centerNum = m_domtree->getBottomResNumber();
370369 m_jumpNumAfterLoading = jumpNum;
371370
372- /* DatManager will call back slotReceiveData and slotFinishLoad. */
371+ // DatManager will call back slotReceiveData and slotFinishLoad.
373372 DatManager(m_datUrl).updateCache(this);
374373 view() ->setFocus();
375374
@@ -391,10 +390,10 @@ void HTMLPart::slotReceiveData()
391390 int readNum = DatManager(m_datUrl).getReadNum();
392391 int bottom = m_domtree->getBottomResNumber();
393392
394- /* parsing */
393+ // parsing
395394 parseResponses(bottom + 1, readNum);
396395
397- /* rendering */
396+ // rendering
398397 if (m_firstReceive || bottom + delta < readNum) {
399398 showResponses(bottom + 1, readNum);
400399 updateScreen(true, false);
@@ -455,7 +454,7 @@ bool HTMLPart::gotoAnchor(const QString& anc, bool pushPosition)
455454
456455 if (res > 1) {
457456
458- /* is target valid ? */
457+ // is target valid?
459458 if (!DatManager(m_datUrl).isResValid(res))
460459 return false;
461460
@@ -465,9 +464,9 @@ bool HTMLPart::gotoAnchor(const QString& anc, bool pushPosition)
465464 if (res == 1) ancstr = "header";
466465 if (pushPosition) pushCurrentPosition();
467466
468- /* KHTMLPart::gotoAnchor() will fail if the thread is not shown. */
469- /* So KHTMLPart::gotoAnchor() should be called via custom event. */
470- /* See also HTMLPart::customEvent() */
467+ // KHTMLPart::gotoAnchor() will fail if the thread is not shown.
468+ // So KHTMLPart::gotoAnchor() should be called via custom event.
469+ // See also HTMLPart::customEvent()
471470 GotoAnchorEvent * e = new GotoAnchorEvent(ancstr);
472471 QApplication::postEvent(this, e); // Qt will delete it when done
473472
@@ -562,13 +561,13 @@ bool HTMLPart::findText(const QString &query, bool reverse)
562561 QRegExp regexp(query);
563562 regexp.setCaseSensitivity(Qt::CaseInsensitive);
564563
565- /* init */
564+ // init
566565 if (m_findNode.isNull()) {
567566
568567 m_findNode = htmlDocument().body();
569568 m_find_y = 0;
570569
571- /* move to the last child node */
570+ // move to the last child node
572571 if (reverse) {
573572 while (!m_findNode.lastChild().isNull()) m_findNode = m_findNode.lastChild();
574573 m_find_y = view() ->contentsHeight();
@@ -580,7 +579,7 @@ bool HTMLPart::findText(const QString &query, bool reverse)
580579 if (m_findNode.nodeType() == DOM::Node::TEXT_NODE
581580 || m_findNode.nodeType() == DOM::Node::CDATA_SECTION_NODE) {
582581
583- /* find the word in the current node */
582+ // find the word in the current node
584583 DOM::DOMString nodeText = m_findNode.nodeValue();
585584 QString nodestr = nodeText.string();
586585 if (reverse && m_findPos != -1) nodestr.resize(m_findPos);
@@ -588,7 +587,7 @@ bool HTMLPart::findText(const QString &query, bool reverse)
588587 if (reverse) m_findPos = nodestr.lastIndexOf(regexp, m_findPos);
589588 else m_findPos = nodestr.indexOf(regexp, m_findPos + 1);
590589
591- /* scroll & select & return */
590+ // scroll & select & return
592591 if (m_findPos != -1) {
593592 int matchLen = regexp.matchedLength();
594593
@@ -628,12 +627,12 @@ bool HTMLPart::findText(const QString &query, bool reverse)
628627 }
629628 }
630629
631- /*------------------------*/
630+ //------------------------
632631
633632 m_findPos = -1;
634633 DOM::Node next;
635634
636- /* move to the next node */
635+ // move to the next node
637636 if (!reverse) {
638637
639638 next = m_findNode.firstChild();
@@ -646,7 +645,7 @@ bool HTMLPart::findText(const QString &query, bool reverse)
646645 }
647646 }
648647 }
649- /* revearse */
648+ // revearse
650649 else {
651650
652651 next = m_findNode.lastChild();
@@ -688,18 +687,18 @@ void HTMLPart::showPopupMenu(const KUrl& kurl)
688687
689688 QString str;
690689
691- /* If selected Text is composed of only digits, then show res popup. */
690+ // If selected Text is composed of only digits, then show res popup.
692691 if (!m_pushctrl && showSelectedDigitPopup()) return ;
693692
694- /*-----------------------------------*/
695- /* create menu items */
693+ //-----------------------------------
694+ // create menu items
696695
697696 KMenu popupMenu(view());
698697 KMenu* backSubMenu = 0;
699698 KMenu* markSubMenu = 0;
700699
701- /*------*/
702- /* jump */
700+ //------
701+ // jump
703702 KAction* homeLinkAct = 0;
704703 KAction* kokoLinkAct = 0;
705704 KAction* endLinkAct = 0;
@@ -880,7 +879,7 @@ void HTMLPart::customEvent(QEvent * e)
880879 /* protected */
881880 void HTMLPart::khtmlMousePressEvent(khtml::MousePressEvent* e)
882881 {
883- emit mousePressed(); /* to ThreadView to focus this view. */
882+ emit mousePressed(); // to ThreadView to focus this view.
884883
885884 KUrl kurl;
886885 if (!e->url().string().isEmpty()) {
@@ -895,7 +894,7 @@ void HTMLPart::khtmlMousePressEvent(khtml::MousePressEvent* e)
895894
896895 if (e->url() != 0) {
897896
898- if (e->url().string().at(0) == '#') { /* anchor */
897+ if (e->url().string().at(0) == '#') { // anchor
899898 kurl = m_datUrl;
900899 kurl.setRef(e->url().string().mid(1)) ;
901900 }
@@ -905,7 +904,7 @@ void HTMLPart::khtmlMousePressEvent(khtml::MousePressEvent* e)
905904 return ;
906905 }
907906
908- /* popup menu */
907+ // popup menu
909908 if (m_pushrightbt) {
910909 showPopupMenu(kurl);
911910 m_pushctrl = m_pushmidbt = m_pushrightbt = false;
@@ -939,28 +938,28 @@ void HTMLPart::clickAnchor(const KUrl& urlin)
939938 QString refstr;
940939 KUrl datUrl = getDatUrl(urlin , refstr);
941940
942- /*--------------------*/
943- /* Ctrl + right click */
941+ //--------------------
942+ // Ctrl + right click
944943 if (m_pushctrl && m_pushrightbt) {
945944 showPopupMenu(urlin);
946945 return ;
947946 }
948947
949- /*--------------------------------*/
950- /* If this is not anchor, then */
951- /* emit openURLRequest and return */
948+ //--------------------------------
949+ // If this is not anchor, then
950+ // emit openURLRequest and return
952951
953952 if (datUrl.host() != m_datUrl.host() || datUrl.path() != m_datUrl.path()) {
954953
955- /* right click */
954+ // right click
956955 if (m_pushrightbt) {
957956
958- /* start multi-popup mode or show popup menu */
957+ // start multi-popup mode or show popup menu
959958 if (!startMultiPopup()) showPopupMenu(urlin);
960959
961960 return ;
962961 }
963- /* right click */
962+ // right click
964963
965964 ViewMediator::getInstance()->openUrl(urlin);
966965 return ;
@@ -968,37 +967,37 @@ void HTMLPart::clickAnchor(const KUrl& urlin)
968967
969968 if (refstr.isEmpty()) return ;
970969
971- /*---------------------------*/
972- /* show popupmenu for #write */
970+ //---------------------------
971+ // show popupmenu for #write
973972
974973 if (refstr.left(5) == "write") {
975974 showWritePopupMenu(refstr);
976975 return ;
977976 }
978977
979- /*----------------------------*/
980- /* extract responses by ID */
978+ //----------------------------
979+ // extract responses by ID
981980
982981 if (refstr.left(5) == "idpop") {
983982 showIdPopup(refstr);
984983 return ;
985984 }
986985
987- /*---------------------------*/
988- /* show popupmenu for #bepop */
986+ //---------------------------
987+ // show popupmenu for #bepop
989988
990989 if (refstr.left(5) == "bepop") {
991990 showBePopupMenu(refstr);
992991 return ;
993992 }
994993
995- /*-------------------------*/
996- /* start multi-popup mdde */
994+ //-------------------------
995+ // start multi-popup mdde
997996 if (m_pushrightbt && startMultiPopup()) return ;
998997
999998
1000- /*----------------------------*/
1001- /* next 100 ,before 100 ,etc. */
999+ //----------------------------
1000+ // next 100 ,before 100 ,etc.
10021001 if (m_mode == HTMLPART_MODE_MAINPART) {
10031002 if (refstr.left(7) == "tosaigo") {
10041003 slotClickGotoFooter();
@@ -1006,8 +1005,8 @@ void HTMLPart::clickAnchor(const KUrl& urlin)
10061005 }
10071006 }
10081007
1009- /*-------------------------------*/
1010- /* open Kita Navi or goto anchor */
1008+ //-------------------------------
1009+ // open Kita Navi or goto anchor
10111010
10121011 int refNum, refNum2;
10131012
@@ -1044,7 +1043,7 @@ void HTMLPart::showWritePopupMenu(const QString& refstr)
10441043 DatManager datManager(m_datUrl);
10451044 QString namestr = datManager.getPlainName(resNum);
10461045
1047- /* show res tree */
1046+ // show res tree
10481047 if (m_pushrightbt) {
10491048 int num;
10501049 QString htmlstr = datManager.getTreeByRes(resNum, num);
@@ -1056,8 +1055,8 @@ void HTMLPart::showWritePopupMenu(const QString& refstr)
10561055 return ;
10571056 }
10581057
1059- /*---------------------*/
1060- /* create popup menu */
1058+ //---------------------
1059+ // create popup menu
10611060 QString plainStr;
10621061
10631062 KMenu popupMenu(view());
@@ -1205,7 +1204,7 @@ void HTMLPart::showIdPopup(const QString& refstr)
12051204 .replace("%2B", "+")
12061205 .replace("%2F", "/");
12071206
1208- /* popup */
1207+ // popup
12091208 if (m_pushrightbt) {
12101209 int num;
12111210 QString htmlstr = DatManager(m_datUrl).getHtmlById(strid, num);
@@ -1399,7 +1398,7 @@ void HTMLPart::slotLeave()
13991398
14001399 hidePopup();
14011400
1402- /* emit signal to have parent hide this if this is popup . */
1401+ // emit signal to have parent hide this if this is popup.
14031402 if (m_mode == HTMLPART_MODE_POPUP && !isUnderMouse(0, 0)) {
14041403 emit hideChildPopup();
14051404 }
@@ -1414,7 +1413,7 @@ void HTMLPart::slotVSliderReleased()
14141413
14151414 hidePopup();
14161415
1417- /* emit signal to have parent hide this if this is popup . */
1416+ // emit signal to have parent hide this if this is popup.
14181417 if (m_mode == HTMLPART_MODE_POPUP && !isUnderMouse(mrg, 0)) {
14191418 emit hideChildPopup();
14201419 }
@@ -1430,7 +1429,7 @@ void HTMLPart::slotHSliderReleased()
14301429
14311430 hidePopup();
14321431
1433- /* emit signal to have parent hide this if this is popup . */
1432+ // emit signal to have parent hide this if this is popup.
14341433 if (m_mode == HTMLPART_MODE_POPUP && !isUnderMouse(0, mrg)) {
14351434 emit hideChildPopup();
14361435 }
@@ -1443,7 +1442,7 @@ void HTMLPart::slotHideChildPopup()
14431442 {
14441443 hidePopup();
14451444
1446- /* emit signal to have parent hide this if this is popup . */
1445+ // emit signal to have parent hide this if this is popup.
14471446 if (m_mode == HTMLPART_MODE_POPUP && !isUnderMouse(0, 0)) {
14481447 emit hideChildPopup();
14491448 }
@@ -1454,11 +1453,11 @@ void HTMLPart::slotHideChildPopup()
14541453 /* This slot is called when mouse moves onto the URL */ /* private slot */
14551454 void HTMLPart::slotOnUrl(const QString& url)
14561455 {
1457- /* config */
1456+ // config
14581457
1459- const int maxpopup = 10; /* max number of responses shown in the popup window */
1458+ const int maxpopup = 10; // max number of responses shown in the popup window
14601459
1461- /*----------------------------*/
1460+ //----------------------------
14621461
14631462 if (isMultiPopupMode()) return ;
14641463
@@ -1467,10 +1466,10 @@ void HTMLPart::slotOnUrl(const QString& url)
14671466 if (url.isEmpty()) return ;
14681467 if (url.left(7) == "mailto:") return ;
14691468
1470- /* Is Kita active now ? */
1469+ // Is Kita active now?
14711470 if(ViewMediator::getInstance()->isActive() == false) return;
14721471
1473- /* get reference */
1472+ // get reference
14741473 QString refstr;
14751474 KUrl datUrl = m_datUrl;
14761475 if (url.at(0) == '#') {
@@ -1480,8 +1479,8 @@ void HTMLPart::slotOnUrl(const QString& url)
14801479 }
14811480
14821481 DatManager datManager(m_datUrl);
1483- /*------------------------*/
1484- /* id popup */
1482+ //------------------------
1483+ // id popup
14851484
14861485 if (url.left(6) == "#idpop") {
14871486 int num = datManager.getNumById(url.mid(6));
@@ -1498,8 +1497,8 @@ void HTMLPart::slotOnUrl(const QString& url)
14981497 }
14991498
15001499
1501- /*------------------------*/
1502- /* show reffered num */
1500+ //------------------------
1501+ // show reffered num
15031502
15041503 if (refstr.left(5) == "write") {
15051504 int no = refstr.mid(5).toInt();
@@ -1517,8 +1516,8 @@ void HTMLPart::slotOnUrl(const QString& url)
15171516 }
15181517
15191518
1520- /*------------------------*/
1521- /* abone */
1519+ //------------------------
1520+ // abone
15221521
15231522 if (url.left(6) == "#abone") {
15241523 int no = url.mid(6).toInt();
@@ -1527,15 +1526,15 @@ void HTMLPart::slotOnUrl(const QString& url)
15271526 return ;
15281527 }
15291528
1530- /*-------------------------*/
1531- /* popup for anchor */
1529+ //-------------------------
1530+ // popup for anchor
15321531
15331532 QString innerHTML;
15341533 int refNum;
15351534 int refNum2;
15361535
15371536 int i = refstr.indexOf("-");
1538- if (i != -1) { /* >>refNum-refNum2 */
1537+ if (i != -1) { // >>refNum-refNum2
15391538
15401539 refNum = refstr.left(i).toInt();
15411540 refNum2 = refstr.mid(i + 1).toInt();
@@ -1545,32 +1544,32 @@ void HTMLPart::slotOnUrl(const QString& url)
15451544 if (refNum2 - refNum > maxpopup - 1) refNum2 = refNum + maxpopup - 1;
15461545 }
15471546
1548- } else { /* >>refNum */
1547+ } else { // >>refNum
15491548 refNum = refstr.toInt();
15501549 refNum2 = refNum;
15511550 }
15521551
15531552 DatManager localDatManager(datUrl);
1554- /* another thread ? */
1553+ // another thread?
15551554 if (datUrl.host() != m_datUrl.host() || datUrl.path() != m_datUrl.path()) {
15561555
1557- /* get board name */
1556+ // get board name
15581557 BoardDatabase db(datUrl);
15591558 QString boardName = db.boardName();
15601559 if (!boardName.isEmpty()) innerHTML += '[' + boardName + "] ";
15611560
1562- /* If idx file of datURL is not read, thread name cannot be obtained.
1563- so, create DatInfo if cache exists, and read idx file in DatInfo::DatInfo(). */
1561+ // If idx file of datURL is not read, thread name cannot be obtained.
1562+ // so, create DatInfo if cache exists, and read idx file in DatInfo::DatInfo().
15641563 localDatManager.getDatInfoPointer();
15651564
1566- /* get thread Name */
1565+ // get thread Name
15671566 QString subName = localDatManager.threadName();
15681567 if (!subName.isEmpty()) innerHTML += subName + "<br><br>";
15691568
15701569 if (!refNum) refNum = refNum2 = 1;
15711570 }
15721571
1573- /* get HTML and show it */
1572+ // get HTML and show it
15741573 if (!refNum) return ;
15751574 innerHTML += localDatManager.getHtml(refNum, refNum2);
15761575
--- a/src/kitaui/htmlview.cpp
+++ b/src/kitaui/htmlview.cpp
@@ -39,7 +39,7 @@ void HTMLView::keyPressEvent(QKeyEvent* e)
3939 /* protected */
4040 void HTMLView::wheelEvent(QWheelEvent * e)
4141 {
42- if (e->delta() < 0) { /* scroll down */
42+ if (e->delta() < 0) { // scroll down
4343 if (emitPushDown()) return ;
4444 }
4545
@@ -52,7 +52,7 @@ bool HTMLView::emitPushDown()
5252 int y = contentsY();
5353
5454 if (y >= contentsHeight() - visibleHeight()) {
55- emit pushDown(); /* to HTMLPart in order to call slotClickTugi100 */
55+ emit pushDown(); // to HTMLPart in order to call slotClickTugi100
5656 return true;
5757 }
5858
--- a/src/kitaui/tabwidgetbase.cpp
+++ b/src/kitaui/tabwidgetbase.cpp
@@ -30,7 +30,7 @@ TabWidgetBase::TabWidgetBase(QWidget* parent) : KTabWidget(parent)
3030 setupActions();
3131
3232 if (parent) {
33- /* setup part manager */
33+ // setup part manager
3434 m_manager = new KParts::PartManager(parent, this);
3535 m_manager->addManagedTopLevelWidget(parent);
3636 } else {
@@ -41,7 +41,7 @@ TabWidgetBase::TabWidgetBase(QWidget* parent) : KTabWidget(parent)
4141
4242 TabWidgetBase::~TabWidgetBase()
4343 {
44- /* remove parts */
44+ // remove parts
4545 if (m_manager && !(m_manager->parts().isEmpty())) {
4646 KParts::Part * part;
4747 while ((part = m_manager->parts().first()) != 0) {
@@ -53,7 +53,7 @@ TabWidgetBase::~TabWidgetBase()
5353 delete m_manager;
5454 m_manager = 0;
5555
56- /* remove widgets which don't belong to parts */
56+ // remove widgets which don't belong to parts
5757 QWidget* view = currentWidget();
5858 while (count() > 0 && view) {
5959 removePage(view);
--- a/src/libkita/access.cpp
+++ b/src/libkita/access.cpp
@@ -68,7 +68,7 @@ void Access::getcache()
6868 switch (m_bbstype) {
6969
7070 case Board_2ch:
71- case Board_MachiBBS: /* Machi BBS's data is already parsed as 2ch dat. */
71+ case Board_MachiBBS: // Machi BBS's data is already parsed as 2ch dat.
7272
7373 {
7474 QString tmpData = K2ch().datToUnicode(orgData);
@@ -78,8 +78,8 @@ void Access::getcache()
7878 break;
7979
8080 default:
81- /* convert data stream into 2ch dat.
82- and emit receiveData SIGNAL. */
81+ // convert data stream into 2ch dat.
82+ // and emit receiveData SIGNAL.
8383 emitDatLineList(orgData);
8484 break;
8585 }
@@ -102,7 +102,7 @@ void Access::writeCacheData()
102102 QDataStream out(&file);
103103 out << m_threadData;
104104 }
105- m_threadData.clear(); /* clear baffer */
105+ m_threadData.clear(); // clear baffer
106106
107107 return ;
108108 }
@@ -110,14 +110,14 @@ void Access::writeCacheData()
110110 /* update cache file */ /* public */
111111 bool Access::getupdate(int readNum)
112112 {
113- /* init */
113+ // init
114114 m_readNum = readNum;
115115 m_threadData.clear();
116116 m_firstReceive = false;
117117 m_invalidDataReceived = false;
118118 m_lastLine.clear();
119119
120- /* set URL of data */
120+ // set URL of data
121121 QString getUrl;
122122 switch (m_bbstype) {
123123
@@ -130,7 +130,7 @@ bool Access::getupdate(int readNum)
130130
131131 case Board_JBBS:
132132 getUrl = getThreadUrl(m_datUrl);
133- getUrl.replace("read.cgi", "rawmode.cgi"); /* adhoc... */
133+ getUrl.replace("read.cgi", "rawmode.cgi"); // adhoc...
134134 if (m_readNum > 0)
135135 getUrl += '/' + QString::number(m_readNum + 1) + '-';
136136 break;
@@ -139,13 +139,13 @@ bool Access::getupdate(int readNum)
139139 getUrl = m_datUrl.prettyUrl();
140140 }
141141
142- /* set UserAgent */
142+ // set UserAgent
143143 const QString useragent = QString("Monazilla/1.00 (Kita/%1)").arg(VERSION);
144144 KIO::SlaveConfig::self() ->setConfigData("http",
145145 KUrl(getUrl).host(),
146146 "UserAgent", useragent);
147147
148- /* create new job */
148+ // create new job
149149 KIO::TransferJob* job
150150 = KIO::get(getUrl, KIO::Reload, KIO::HideProgressInfo);
151151 m_currentJob = job;
@@ -157,11 +157,11 @@ bool Access::getupdate(int readNum)
157157 // use 'HTTP-Headers' metadata.
158158 job->addMetaData("PropagateHttpHeader", "true");
159159
160- /* resume */
160+ // resume
161161 if (m_bbstype != Board_MachiBBS
162162 && m_bbstype != Board_JBBS
163163 && m_dataSize > 0) {
164- m_firstReceive = true; /* remove first char (i.e. \n). see also slotReceiveThreadData() */
164+ m_firstReceive = true; // remove first char (i.e. \n). see also slotReceiveThreadData()
165165 job->addMetaData("resume", QString::number(m_dataSize - 1));
166166 job->addMetaData("AllowCompressedPage", "false");
167167 }
@@ -203,7 +203,7 @@ void Access::slotReceiveThreadData(KIO::Job*, const QByteArray& data)
203203 return ;
204204 }
205205
206- /* check if received data is invalid (or broken). */
206+ // check if received data is invalid (or broken).
207207 if ((m_dataSize > 0 && responseCode() != 206)
208208 || (m_firstReceive && data_tmp[ 0 ] != '\n')
209209 || (m_dataSize == 0 && responseCode() != 200))
@@ -211,7 +211,7 @@ void Access::slotReceiveThreadData(KIO::Job*, const QByteArray& data)
211211
212212 if (m_invalidDataReceived) return ;
213213
214- /* If this is the first call at resumption, remove LF(\n) at head. */
214+ // If this is the first call at resumption, remove LF(\n) at head.
215215 if (m_firstReceive) {
216216 data_tmp = data_tmp.mid(1);
217217 }
@@ -232,12 +232,12 @@ void Access::emitDatLineList(const QByteArray& dataStream)
232232 bool endIsLF = false;
233233 if (dataStream.at(dataStream.length() - 1) == '\n') endIsLF = true;
234234
235- /* split the stream */
235+ // split the stream
236236 m_lastLine += dataStream;
237237 lineList = m_lastLine.split('\n');
238238 m_lastLine.clear();
239239
240- /* save the last line */
240+ // save the last line
241241 if (!endIsLF) {
242242
243243 QList<QByteArray>::iterator lastit = lineList.end();
@@ -249,9 +249,9 @@ void Access::emitDatLineList(const QByteArray& dataStream)
249249 }
250250 }
251251
252- /* filtering */
252+ // filtering
253253
254- /* convert lines into 2ch dat */
254+ // convert lines into 2ch dat
255255 int count = lineList.count();
256256 for (int i = 0; i < count ; ++i) {
257257
@@ -261,7 +261,7 @@ void Access::emitDatLineList(const QByteArray& dataStream)
261261 QByteArray ba;
262262 int nextNum = m_readNum + 1;
263263
264- /* convert line */
264+ // convert line
265265 switch (m_bbstype) {
266266
267267 case Board_MachiBBS:
@@ -298,7 +298,7 @@ void Access::emitDatLineList(const QByteArray& dataStream)
298298
299299 if (line2.isEmpty()) continue;
300300
301- /* add abone lines */
301+ // add abone lines
302302 const char aboneStr[] = "abone<><><>abone<>";
303303 while (nextNum > m_readNum + 1) {
304304 datLineList += aboneStr;
@@ -306,7 +306,7 @@ void Access::emitDatLineList(const QByteArray& dataStream)
306306 ++m_readNum;
307307 }
308308
309- /* save line */
309+ // save line
310310 if (m_bbstype == Board_MachiBBS) m_threadData += ba + '\n';
311311 else m_threadData += lineList[ i ] + '\n';
312312 ++m_readNum;
@@ -315,7 +315,7 @@ void Access::emitDatLineList(const QByteArray& dataStream)
315315 }
316316 }
317317
318- /* call DatInfo::slotReceiveData() */
318+ // call DatInfo::slotReceiveData()
319319 emit receiveData(datLineList);
320320 }
321321
@@ -328,7 +328,7 @@ void Access::killJob()
328328
329329 void Access::stopJob()
330330 {
331- if (m_currentJob) m_currentJob->kill(); /* emit result signal */
331+ if (m_currentJob) m_currentJob->kill(); // emit result signal
332332 }
333333
334334 int Access::serverTime()
@@ -357,7 +357,7 @@ int Access::responseCode()
357357 QStringList dateStrList = headerList.filter(regexp);
358358 if (dateStrList.isEmpty() || regexp.indexIn(dateStrList[0]) == -1) {
359359 // invalid response
360- if (m_bbstype == Board_JBBS) return 200; /* adhoc... */
360+ if (m_bbstype == Board_JBBS) return 200; // adhoc...
361361 return 0;
362362 } else {
363363 return regexp.cap(1).toInt();
@@ -404,7 +404,7 @@ QString OfflawAccess::get()
404404 // use 'HTTP-Headers' metadata.
405405 job->addMetaData("PropagateHttpHeader", "true");
406406
407- return QString(); /* dummy */
407+ return QString(); // dummy
408408 }
409409
410410 void OfflawAccess::slotThreadResult(KIO::Job* job)
--- a/src/libkita/boarddata.cpp
+++ b/src/libkita/boarddata.cpp
@@ -26,14 +26,14 @@ BoardData::BoardData(const QString& boardName,
2626 : m_boardName(boardName), m_readIdx(false), m_rootPath(rootPath),
2727 m_delimiter(delimiter), m_bbsPath(bbsPath), m_ext(ext), m_type(boardtype)
2828 {
29- /* set hostname and create URL of board */
29+ // set hostname and create URL of board
3030 setHostName(hostname);
3131
32- /* create default key */
32+ // create default key
3333 QStringList keyHosts(m_hostname);
3434 createKeys(keyHosts);
3535
36- /* reset SETTING.TXT */
36+ // reset SETTING.TXT
3737 setSettingLoaded(false);
3838 }
3939
@@ -46,16 +46,16 @@ void BoardData::setHostName(const QString& hostName)
4646 {
4747 m_hostname = hostName;
4848
49- /* m_basePath = (hostname)/(rootPath)/(bbsPath)/ */
49+ // m_basePath = (hostname)/(rootPath)/(bbsPath)/
5050 m_basePath = m_hostname + m_rootPath + m_bbsPath + '/';
5151
5252 switch (m_type) {
5353
54- case Board_MachiBBS: /* m_cgiBasePath = (hostname)/(rootPath)/(delimiter)?BBS=(bbsPath) */
54+ case Board_MachiBBS: // m_cgiBasePath = (hostname)/(rootPath)/(delimiter)?BBS=(bbsPath)
5555 m_cgiBasePath = m_hostname + m_rootPath + m_delimiter + "?BBS=" + m_bbsPath.mid(1);
5656 break;
5757
58- /* m_cgiBasePath = (hostname)/(rootPath)/(delimiter)/(bbsPath)/ */
58+ // m_cgiBasePath = (hostname)/(rootPath)/(delimiter)/(bbsPath)/
5959 default:
6060 m_cgiBasePath = m_hostname + m_rootPath + m_delimiter + m_bbsPath + '/';
6161 break;
@@ -215,14 +215,14 @@ void BoardData::setTitleImgUrl(const KUrl& url)
215215 /* create keys of DB */ /* public */
216216 void BoardData::createKeys(const QStringList& keyHostList)
217217 {
218- /* reset keys */
218+ // reset keys
219219 m_keyBasePathList.clear();
220220 m_keyCgiBasePathList.clear();
221221 m_keyHostList.clear();
222222
223223 m_keyHostList = keyHostList;
224224
225- /* m_basePath = (hostname)/(rootPath)/(bbsPath)/ */
225+ // m_basePath = (hostname)/(rootPath)/(bbsPath)/
226226 for (int i = 0; i < m_keyHostList.count(); ++i) {
227227 if (m_keyHostList[ i ].length() > 0)
228228 m_keyBasePathList += m_keyHostList[ i ] + m_rootPath + m_bbsPath + '/';
@@ -230,13 +230,13 @@ void BoardData::createKeys(const QStringList& keyHostList)
230230
231231 switch (m_type) {
232232
233- case Board_MachiBBS: /* m_cgiBasePath = (hostname)/(rootPath)/(delimiter)?BBS=(bbsPath) */
233+ case Board_MachiBBS: // m_cgiBasePath = (hostname)/(rootPath)/(delimiter)?BBS=(bbsPath)
234234 for (int i = 0; i < m_keyHostList.count(); ++i)
235235 m_keyCgiBasePathList += m_keyHostList[ i ] + m_rootPath + m_delimiter
236236 + "?BBS=" + m_bbsPath.mid(1);
237237 break;
238238
239- /* m_cgiBasePath = (hostname)/(rootPath)/(delimiter)/(bbsPath)/ */
239+ // m_cgiBasePath = (hostname)/(rootPath)/(delimiter)/(bbsPath)/
240240 default:
241241 for (int i = 0; i < m_keyHostList.count(); ++i)
242242 m_keyCgiBasePathList += m_keyHostList[ i ] + m_rootPath + m_delimiter + m_bbsPath + '/';
--- a/src/libkita/boarddatabase.cpp
+++ b/src/libkita/boarddatabase.cpp
@@ -86,7 +86,7 @@ QString BoardDatabase::ext()
8686 QString BoardDatabase::boardId()
8787 {
8888 BoardData * bdata = getBoardData();
89- return (bdata == 0) ? QString() : bdata->bbsPath().mid(1); /* remove "/" */
89+ return (bdata == 0) ? QString() : bdata->bbsPath().mid(1); // remove "/"
9090 }
9191
9292 /* (hostname)/(rootPath)/(bbsPath)/subject.txt */ /* public */
@@ -140,12 +140,12 @@ void BoardDatabase::getThreadList(
140140 threadList.clear();
141141 oldLogList.clear();
142142
143- /* get all obtained threads list from cache */
143+ // get all obtained threads list from cache
144144 if (m_url.prettyUrl() == "http://virtual/obtained/") {
145145
146146 QStringList bbslist = allBoardUrlList();
147147
148- /* search all cache dirs */
148+ // search all cache dirs
149149 QString thread;
150150 foreach (thread, bbslist) {
151151 getCachedThreadList(thread, threadList);
@@ -154,15 +154,15 @@ void BoardDatabase::getThreadList(
154154 return ;
155155 }
156156
157- /*-------------------------*/
157+ //-------------------------
158158
159159 BoardData* bdata = getBoardData();
160160 if (bdata == 0) return ;
161161
162- /* download subject.txt */
162+ // download subject.txt
163163 if (online) {
164164
165- /* make directory */
165+ // make directory
166166 Cache cache(m_url);
167167 QString cacheDir = cache.getDirPath();
168168 if (!QDir::root().mkpath(cacheDir)) return;
@@ -175,10 +175,10 @@ void BoardDatabase::getThreadList(
175175 KIO::NetAccess::download(subjectUrl(), subjectPath, 0);
176176 }
177177
178- /* open and read subject.txt */
178+ // open and read subject.txt
179179 readSubjectTxt(bdata, threadList);
180180
181- /* get old logs */
181+ // get old logs
182182 if (oldLogs) {
183183
184184 QList<Thread*> tmpList;
@@ -201,7 +201,7 @@ void BoardDatabase::getCachedThreadList(const KUrl& url,
201201 QDir d(cacheDir);
202202 if (d.exists()) {
203203
204- /* get all file names */
204+ // get all file names
205205 QString ext = getBoardData(url)->ext();
206206 QString boardUrl = getBoardData(url)->basePath();
207207 QStringList filter('*' + ext);
@@ -212,7 +212,7 @@ void BoardDatabase::getCachedThreadList(const KUrl& url,
212212
213213 QString datUrl = boardUrl + "dat/" + file;
214214
215- /* read idx file */
215+ // read idx file
216216 Thread* thread = Thread::getByUrlNew(datUrl);
217217 if (thread == 0) {
218218
@@ -232,7 +232,7 @@ void BoardDatabase::getCachedThreadList(const KUrl& url,
232232 /* open subject.txt and get list of Thread classes */ /* private */
233233 bool BoardDatabase::readSubjectTxt(BoardData* bdata, QList<Thread*>& threadList)
234234 {
235- /* get all names of cached files to read idx. */
235+ // get all names of cached files to read idx.
236236 QStringList cacheList;
237237 if (!bdata->readIdx()) {
238238 Cache cache(m_url);
@@ -245,7 +245,7 @@ bool BoardDatabase::readSubjectTxt(BoardData* bdata, QList<Thread*>& threadList)
245245 }
246246 }
247247
248- /* open subject.txt */
248+ // open subject.txt
249249 Cache cache(m_url);
250250 QString subjectPath = cache.getSubjectPath();
251251 QIODevice * device = KFilterDev::deviceForFile(subjectPath, "application/x-gzip");
@@ -283,7 +283,7 @@ bool BoardDatabase::readSubjectTxt(BoardData* bdata, QList<Thread*>& threadList)
283283 QString subject = regexp.cap(2);
284284 QString num = regexp.cap(3);
285285
286- /* get pointer of Thread class */
286+ // get pointer of Thread class
287287 QString datUrl = boardUrl() + "dat/" + fname;
288288 Thread* thread = Thread::getByUrl(datUrl);
289289 ThreadIndex threadIndex(datUrl);
@@ -291,10 +291,10 @@ bool BoardDatabase::readSubjectTxt(BoardData* bdata, QList<Thread*>& threadList)
291291 threadList.append(thread);
292292 }
293293
294- /* set thread name */
294+ // set thread name
295295 thread->setThreadName(subject);
296296
297- /* load index file */
297+ // load index file
298298 if (!bdata->readIdx()) {
299299
300300 if (cacheList.contains(fname)) {
@@ -302,9 +302,9 @@ bool BoardDatabase::readSubjectTxt(BoardData* bdata, QList<Thread*>& threadList)
302302 }
303303 }
304304
305- /* update res num */
305+ // update res num
306306 int newNum = num.toInt();
307- if (thread->readNum()) { /* cache exists */
307+ if (thread->readNum()) { // cache exists
308308 int oldNum = thread->resNum();
309309
310310 if (newNum > oldNum) {
@@ -316,7 +316,7 @@ bool BoardDatabase::readSubjectTxt(BoardData* bdata, QList<Thread*>& threadList)
316316 }
317317
318318 device->close();
319- bdata->setReadIdx(true); /* never read idx files again */
319+ bdata->setReadIdx(true); // never read idx files again
320320
321321 return true;
322322 }
@@ -370,7 +370,7 @@ int BoardDatabase::recordBoard(const QString& boardName, QString& oldUrl, int ty
370370
371371 if (type == Board_Unknown) return Board_recordFailed;
372372
373- /* check if the board is recorded or moved. */
373+ // check if the board is recorded or moved.
374374 BoardData *data;
375375 foreach (data, m_boardDataList) {
376376
@@ -379,20 +379,20 @@ int BoardDatabase::recordBoard(const QString& boardName, QString& oldUrl, int ty
379379 && data->bbsPath() == bbsPath) {
380380
381381 if (data->hostName() == hostname
382- && data->rootPath() == rootPath) { /* recorded */
382+ && data->rootPath() == rootPath) { // recorded
383383 return Board_recordRecorded;
384- } else { /* moved */
384+ } else { // moved
385385 oldUrl = data->basePath();
386386 return Board_recordMoved;
387387 }
388388 }
389389 }
390390
391- /* test only */
391+ // test only
392392 if (test)
393393 return Board_recordNew;
394394
395- /* record new board */
395+ // record new board
396396 BoardData* bdata = new BoardData(boardName, hostname, rootPath, delimiter, bbsPath, ext, type);
397397 m_boardDataList.append(bdata);
398398
@@ -419,7 +419,7 @@ int BoardDatabase::parseBoardUrl(
419419 bbsPath.clear();
420420 ext.clear();
421421
422- /* decide type */
422+ // decide type
423423 if (type == Board_Unknown) {
424424
425425 if (m_url.host().contains("machi.to"))
@@ -430,17 +430,17 @@ int BoardDatabase::parseBoardUrl(
430430 type = Board_2ch;
431431 }
432432
433- /* parse */
433+ // parse
434434 switch (type) {
435435
436- case Board_MachiBBS: /* MACHI : http:// *.machi.to/(bbsPath)/ */
436+ case Board_MachiBBS: // MACHI : http:// *.machi.to/(bbsPath)/
437437
438438 delimiter = "/bbs/read.pl";
439439 bbsPath = m_url.fileName();
440440 ext = ".cgi";
441441 break;
442442
443- case Board_JBBS: /* JBBS : http://jbbs.livedoor.jp/(bbsPath)/ */
443+ case Board_JBBS: // JBBS : http://jbbs.livedoor.jp/(bbsPath)/
444444
445445 delimiter = "/bbs/read.cgi";
446446 bbsPath = m_url.prettyUrl().remove(hostname);
@@ -448,7 +448,7 @@ int BoardDatabase::parseBoardUrl(
448448 ext = ".cgi";
449449 break;
450450
451- case Board_FlashCGI: /* test for Flash CGI/Mini Thread */
451+ case Board_FlashCGI: // test for Flash CGI/Mini Thread
452452
453453 delimiter = "/test/read.cgi";
454454 bbsPath = m_url.fileName();
@@ -458,7 +458,7 @@ int BoardDatabase::parseBoardUrl(
458458 ext = ".dat";
459459 break;
460460
461- default: /* 2ch : http://(hostname)/(rootPath)/(bbsPath)/ */
461+ default: // 2ch : http://(hostname)/(rootPath)/(bbsPath)/
462462
463463 delimiter = "/test/read.cgi";
464464 bbsPath = m_url.fileName();
@@ -470,7 +470,7 @@ int BoardDatabase::parseBoardUrl(
470470 break;
471471 }
472472
473- /* For example, if bbsPath = "linux/", then m_bbsPath = "/linux" */
473+ // For example, if bbsPath = "linux/", then m_bbsPath = "/linux"
474474 const QRegExp exp("/$");
475475 rootPath.remove(exp);
476476 bbsPath.remove(exp);
@@ -495,7 +495,7 @@ BoardData* BoardDatabase::getBoardData(const KUrl& url)
495495 return 0;
496496 QString urlstr = url.prettyUrl();
497497
498- /* cache */
498+ // cache
499499 if (m_previousBoardData != 0 && m_previousBoardUrl == urlstr)
500500 return m_previousBoardData;
501501
@@ -507,7 +507,7 @@ BoardData* BoardDatabase::getBoardData(const KUrl& url)
507507 if (urlstr.contains(data->keyBasePathList()[i])
508508 || urlstr.contains(data->keyCgiBasePathList()[i])) {
509509
510- /* cache */
510+ // cache
511511 m_previousBoardData = data;
512512 m_previousBoardUrl = urlstr;
513513
@@ -588,20 +588,20 @@ bool BoardDatabase::moveBoard(const KUrl& fromUrl, const KUrl& toUrl)
588588
589589 if (oldUrl == newUrl) return false;
590590
591- /* Is oldURL recorded? */
591+ // Is oldURL recorded?
592592 BoardData* bdata = getBoardData(oldUrl);
593593 if (bdata == 0) {
594594
595- /* Is newURL recorded? */
595+ // Is newURL recorded?
596596 bdata = getBoardData(newUrl);
597597 if (bdata == 0) return false;
598598 }
599599
600600
601- /*---------------------------*/
602- /* update BoardData */
601+ //---------------------------
602+ // update BoardData
603603
604- /* get the path of old cache */
604+ // get the path of old cache
605605 bdata->setHostName(oldhost);
606606 QStringList keyHosts = bdata->keyHostList();
607607 keyHosts.removeOne(oldhost);
@@ -610,18 +610,17 @@ bool BoardDatabase::moveBoard(const KUrl& fromUrl, const KUrl& toUrl)
610610 Cache cache(bdata->basePath());
611611 QString oldCachePath = cache.getDirPath();
612612
613- /* update URL */
613+ // update URL
614614 bdata->setHostName(newhost);
615615
616- /* update keys */
617- /* The order of keyHosts will be like this:
618-
619- newhost
620- oldhost
621- foohost1
622- foohost2
623-
624- */
616+ // update keys
617+ // The order of keyHosts will be like this:
618+ //
619+ // newhost
620+ // oldhost
621+ // foohost1
622+ // foohost2
623+ //
625624 keyHosts = bdata->keyHostList();
626625 keyHosts.removeOne(oldhost);
627626 keyHosts.prepend(oldhost);
@@ -629,42 +628,42 @@ bool BoardDatabase::moveBoard(const KUrl& fromUrl, const KUrl& toUrl)
629628 keyHosts.prepend(newhost);
630629 bdata->createKeys(keyHosts);
631630
632- /* reset BoardData */
631+ // reset BoardData
633632 bdata->setReadIdx(false);
634633 bdata->setSettingLoaded(false);
635634
636635
637- /*---------------------------*/
638- /* move cache dir */
636+ //---------------------------
637+ // move cache dir
639638
640639 QDir qdir;
641640 if (! qdir.exists(oldCachePath)) return true;
642641
643- /* mkdir new server dir */
642+ // mkdir new server dir
644643 Cache newCache(bdata->basePath());
645644 QString newCachePath = Cache::baseDir() + newCache.serverDir();
646645 QDir::root().mkpath(newCachePath);
647646
648- /* backup old dir */
647+ // backup old dir
649648 newCachePath += newCache.boardDir();
650649 if (qdir.exists (newCachePath)) {
651650 QString bkupPath = newCachePath;
652- bkupPath.truncate(bkupPath.length() - 1); /* remove '/' */
651+ bkupPath.truncate(bkupPath.length() - 1); // remove '/'
653652 bkupPath +=
654653 '.' + QString::number(QDateTime::currentDateTime().toTime_t());
655654 qdir.rename(newCachePath, bkupPath);
656655 }
657656
658- /* move cache dir */
657+ // move cache dir
659658 if (qdir.exists(oldCachePath)) {
660659 qdir.rename(oldCachePath, newCachePath);
661660 } else
662661 QDir::root().mkpath(newCachePath);
663662
664- /* make old dir */
663+ // make old dir
665664 if (! qdir.exists(oldCachePath)) {
666665 QDir::root().mkpath(oldCachePath);
667- /* create BBS_MOVED */
666+ // create BBS_MOVED
668667 QString movedPath = oldCachePath + "/BBS_MOVED";
669668 QFile file(movedPath);
670669 if (file.open(QIODevice::WriteOnly)) {
@@ -674,8 +673,8 @@ bool BoardDatabase::moveBoard(const KUrl& fromUrl, const KUrl& toUrl)
674673 file.close();
675674 }
676675
677- /*---------------------------*/
678- /* update BBSHISTRY */
676+ //---------------------------
677+ // update BBSHISTRY
679678
680679 Cache historyCache(bdata->basePath());
681680 QFile file(historyCache.getBBSHistoryPath());
@@ -693,8 +692,8 @@ bool BoardDatabase::moveBoard(const KUrl& fromUrl, const KUrl& toUrl)
693692 }
694693
695694
696- /*---------------------------*/
697- /* update other information */
695+ //---------------------------
696+ // update other information
698697 FavoriteThreads::replace(oldUrl, newUrl);
699698 Thread::replace(oldUrl, newUrl);
700699 ThreadInfo::replace(oldUrl, newUrl);
--- a/src/libkita/cache.cpp
+++ b/src/libkita/cache.cpp
@@ -32,7 +32,7 @@ QString Cache::baseDir()
3232
3333 QString Cache::serverDir() const
3434 {
35- /* Is board recorded ? */
35+ // Is board recorded?
3636 BoardDatabase db(m_url);
3737 BoardData * bdata = db.getBoardData();
3838 if (bdata == 0) return QString();
@@ -45,7 +45,7 @@ QString Cache::serverDir() const
4545
4646 QString Cache::boardDir() const
4747 {
48- /* Is board recorded ? */
48+ // Is board recorded?
4949 BoardDatabase db(m_url);
5050 BoardData * bdata = db.getBoardData();
5151 if (bdata == 0) return QString();
--- a/src/libkita/datinfo.cpp
+++ b/src/libkita/datinfo.cpp
@@ -42,33 +42,33 @@ DatInfo::DatInfo(const KUrl& url) : m_threadIndex(m_datUrl),
4242 QString refstr;
4343 m_datUrl = getDatUrl(url, refstr);
4444 m_threadIndex = ThreadIndex(m_datUrl);
45- /* get the pointer of Thread class */
45+ // get the pointer of Thread class
4646 m_thread = Thread::getByUrlNew(m_datUrl);
4747 if (m_thread == 0) {
4848
49- /* create Thread */
49+ // create Thread
5050 m_thread = Thread::getByUrl(m_datUrl);
5151 if (m_thread == 0) return ;
5252
53- /* read idx file */
53+ // read idx file
5454 m_threadIndex.loadIndex(m_thread);
5555 }
5656
5757 m_thread = Thread::getByUrl(m_datUrl);
5858
59- /* japanese strings */
59+ // japanese strings
6060 m_spacestr = QString::fromUtf8(KITAUTF8_ZENSPACE);
61- m_framestr1 = QString::fromUtf8(KITAUTF8_FRAME1); /* | */
62- m_framestr2 = QString::fromUtf8(KITAUTF8_FRAME2); /* |- */
63- m_framestr3 = QString::fromUtf8(KITAUTF8_FRAME3); /* L */
61+ m_framestr1 = QString::fromUtf8(KITAUTF8_FRAME1); // |
62+ m_framestr2 = QString::fromUtf8(KITAUTF8_FRAME2); // |-
63+ m_framestr3 = QString::fromUtf8(KITAUTF8_FRAME3); // L
6464
65- /* make directory */
65+ // make directory
6666 Cache cache(m_datUrl);
6767 QString cacheDir = cache.getDirPath();
6868 if (!QDir::root().mkpath(cacheDir)) return ;
6969
7070 initPrivate(
71- true /* load cache */
71+ true // load cache
7272 );
7373 }
7474
@@ -88,22 +88,22 @@ void DatInfo::init()
8888 /* Init. If loadCache = true, load data from cache. */ /* private */
8989 void DatInfo::initPrivate(bool loadCache)
9090 {
91- /* stop & delete dat loader */
91+ // stop & delete dat loader
9292 deleteAccessJob();
9393
94- /* init variables */
94+ // init variables
9595 m_broken = false;
9696 m_nowLoading = false;
9797 m_lastLine.clear();
9898
99- /* clear ResDatVec */
99+ // clear ResDatVec
100100 m_resDatVec.clear();
101101 increaseResDatVec(RESDAT_DEFAULTSIZE);
102102
103- /* reset Abone */
103+ // reset Abone
104104 resetAbonePrivate();
105105
106- /* create dat loader */
106+ // create dat loader
107107 m_access = new Access(m_datUrl);
108108
109109 connect(m_access, SIGNAL(receiveData(const QStringList&)),
@@ -112,15 +112,15 @@ void DatInfo::initPrivate(bool loadCache)
112112
113113 if (!loadCache) return ;
114114
115- /* reset ReadNum before loading cache. */
116- /* ReadNum & subject are updated by Access::getcache() */
115+ // reset ReadNum before loading cache.
116+ // ReadNum & subject are updated by Access::getcache()
117117 m_thread->setReadNum(0);
118118
119- /* get dat from cahce */
120- /* slotReceiveData() is called from Access::getcache() */
119+ // get dat from cahce
120+ // slotReceiveData() is called from Access::getcache()
121121 m_access->getcache();
122122
123- /* save up-to-date thread information */
123+ // save up-to-date thread information
124124 m_threadIndex.saveIndex(m_thread);
125125 }
126126
@@ -216,7 +216,7 @@ void DatInfo::slotReceiveData(const QStringList& lineList)
216216
217217 if (rescode != 200 && rescode != 206) return ;
218218
219- /* copy lines to buffer */
219+ // copy lines to buffer
220220 int count = lineList.count();
221221 for (int i = 0; i < count ; ++i)
222222 copyOneLineToResDat(lineList[ i ]);
@@ -231,28 +231,28 @@ bool DatInfo::copyOneLineToResDat(const QString& line)
231231 {
232232 if (line.isEmpty()) return false;
233233
234- /* update ReadNum */
234+ // update ReadNum
235235 const int num = m_thread->readNum() + 1;
236236 m_thread->setReadNum(num);
237237
238- /* If resdat vector is short, then resize the vector. */
238+ // If resdat vector is short, then resize the vector.
239239 while ((int) m_resDatVec.size() <= num)
240240 increaseResDatVec(RESDAT_DELTA);
241241
242- /* reset ResDat */
242+ // reset ResDat
243243 RESDAT& resdat = m_resDatVec[ num ];
244244 resetResDat(resdat);
245245
246246 resdat.num = num;
247247 resdat.linestr = line;
248248
249- /* get subject */
249+ // get subject
250250 if (num == 1) parseDat(num);
251251
252- /* search all responses which are responsed by this line. */
252+ // search all responses which are responsed by this line.
253253 if (GlobalConfig::checkResponsed()) {
254254
255- if (parseDat(num) && !checkAbonePrivate(num)) { /* parse line here to get AncList */
255+ if (parseDat(num) && !checkAbonePrivate(num)) { // parse line here to get AncList
256256
257257 const int maxRange = 10;
258258
@@ -279,10 +279,10 @@ bool DatInfo::copyOneLineToResDat(const QString& line)
279279 finished loading new dat */ /* private slot */
280280 void DatInfo::slotFinishLoad()
281281 {
282- /* save thread information */
282+ // save thread information
283283 m_threadIndex.saveIndex(m_thread);
284284
285- /* re-try by offlaw.cgi */
285+ // re-try by offlaw.cgi
286286 DatManager datManager(m_datUrl);
287287 if (m_thread->readNum() == 0 && m_access2 == 0
288288 && datManager.is2chThread()) {
@@ -296,11 +296,11 @@ void DatInfo::slotFinishLoad()
296296 return ;
297297 }
298298 }
299- /* finish loading session & emit signal to the parent object */
299+ // finish loading session & emit signal to the parent object
300300 m_nowLoading = false;
301301 emit finishLoad();
302302
303- /* disconnect signals */
303+ // disconnect signals
304304 disconnect(SIGNAL(receiveData()));
305305 disconnect(SIGNAL(finishLoad()));
306306 }
@@ -344,10 +344,10 @@ bool DatInfo::isLoadingNow() const
344344 void DatInfo::stopLoading() const
345345 {
346346
347- /* Don't lock the mutex here !!!
348- It will cause deadlock , because
349- Access::stopJob() calls HTMLPart::slotFinishLoad() back,
350- then HTMLPart::slotFinishLoad() calls another functions in DatInfo. */
347+ // Don't lock the mutex here !!!
348+ // It will cause deadlock , because
349+ // Access::stopJob() calls HTMLPart::slotFinishLoad() back,
350+ // then HTMLPart::slotFinishLoad() calls another functions in DatInfo.
351351 if (m_access == 0)
352352 return;
353353 if (!m_nowLoading)
@@ -586,7 +586,7 @@ QString DatInfo::getTreeByResCore(int rootnum,
586586
587587 if (!reverse) {
588588
589- /* collect responses that have anchor to rootnum */
589+ // collect responses that have anchor to rootnum
590590 for (int i = rootnum + 1; i <= m_thread->readNum(); i++) {
591591 if (checkAbonePrivate(i)) continue;
592592 if (checkRes(i, rootnum)) {
@@ -595,7 +595,7 @@ QString DatInfo::getTreeByResCore(int rootnum,
595595 }
596596 }
597597
598- } else { /* collect responses for which rootnum has anchors */
598+ } else { // collect responses for which rootnum has anchors
599599
600600 AncList& anclist = m_resDatVec[ rootnum ].anclist;
601601 for (AncList::iterator it = anclist.begin(); it != anclist.end(); ++it) {
@@ -607,21 +607,21 @@ QString DatInfo::getTreeByResCore(int rootnum,
607607 }
608608 }
609609
610- /* make HTML document */
610+ // make HTML document
611611 if (count) {
612612
613613 for (QStringList::iterator it = strlists.begin(); it != strlists.end(); ++it) {
614614 QString tmpstr;
615- if ((*it) == strlists.last()) tmpstr = m_framestr3; /* 'L' */
616- else tmpstr = m_framestr2; /* '|-' */
615+ if ((*it) == strlists.last()) tmpstr = m_framestr3; // 'L'
616+ else tmpstr = m_framestr2; // '|-'
617617
618618 retstr += prestr + tmpstr + "<a href=\"#" + (*it) + "\">&gt;&gt;" + (*it) + "</a><br>";
619619
620- /* call myself recursively */
620+ // call myself recursively
621621 int tmpnum;
622622 tmpstr = prestr;
623- if ((*it) == strlists.last()) tmpstr += m_spacestr + m_spacestr + m_spacestr; /* " " */
624- else tmpstr += m_framestr1 + m_spacestr; /* "| " */
623+ if ((*it) == strlists.last()) tmpstr += m_spacestr + m_spacestr + m_spacestr; // " "
624+ else tmpstr += m_framestr1 + m_spacestr; // "| "
625625 retstr += getTreeByResCore((*it).toInt(), reverse, tmpnum, tmpstr);
626626 count += tmpnum;
627627 }
@@ -731,10 +731,10 @@ bool DatInfo::isBroken() const
731731 int rescode = m_access->responseCode();
732732 bool invalid = m_access->invalidDataReceived();
733733
734- /* see also Access::slotReceiveThreadData() */
734+ // see also Access::slotReceiveThreadData()
735735 if (invalid && (rescode == 200 || rescode == 206)) return true;
736736
737- /* maybe "Dat Ochi" */
737+ // maybe "Dat Ochi"
738738 return false;
739739 }
740740
@@ -771,11 +771,11 @@ bool DatInfo::checkWord(const QStringList& stlist, /* list of keywords */
771771 QRegExp regexp((*it));
772772 regexp.setCaseSensitivity(Qt::CaseInsensitive);
773773
774- if (checkOr) { /* OR */
774+ if (checkOr) { // OR
775775 if (str_text.indexOf(regexp, 0) != -1) {
776776 return true;
777777 }
778- } else { /* AND */
778+ } else { // AND
779779 if (str_text.indexOf(regexp, 0) == -1) return false;
780780 }
781781 }
@@ -858,7 +858,7 @@ bool DatInfo::checkAbonePrivate(int num)
858858 int refNum = (*it).from;
859859 int refNum2 = (*it).to;
860860
861- /* I don't want to enter loop... */
861+ // I don't want to enter loop...
862862 if (refNum >= num) continue;
863863 if (refNum2 >= num) refNum2 = num - 1;
864864
@@ -945,23 +945,23 @@ void DatInfo::createTitleHtml(RESDAT& resdat, QString& titleHtml)
945945
946946 if (useTableTag) titleHtml += "<table class=\"res_title\"><tr>";
947947
948- /* res number */
948+ // res number
949949 if (useTableTag) titleHtml += "<td class=\"res_title_number\">";
950950 titleHtml += "<a href=\"#write" + QString::number(resdat.num) + "\">";
951951 titleHtml += QString::number(resdat.num);
952952 titleHtml += "</a> ";
953953
954- /* name & mail address */
954+ // name & mail address
955955 if (useTableTag) titleHtml += "<td class=\"res_title_name\">";
956956 titleHtml += "<b>" + QString::fromUtf8(KITAUTF8_NAME);
957957
958- /* show name with mail address */
958+ // show name with mail address
959959 if (showMailAddress) {
960960
961961 titleHtml += resdat.nameHTML;
962962 if (!resdat.address.isEmpty()) titleHtml += " [" + resdat.address + ']';
963963
964- } else { /* don't show mail address */
964+ } else { // don't show mail address
965965
966966 if (resdat.address.isEmpty()) {
967967
@@ -980,12 +980,12 @@ void DatInfo::createTitleHtml(RESDAT& resdat, QString& titleHtml)
980980
981981 titleHtml += "</b> ";
982982
983- /* date */
983+ // date
984984 if (useTableTag) titleHtml += "<td class=\"res_title_date\">";
985985 titleHtml += QString::fromUtf8(KITAUTF8_COLON) + resdat.date;
986986 if (useTableTag) titleHtml += "</td>";
987987
988- /* ID */
988+ // ID
989989 if (!resdat.id.isEmpty()) {
990990
991991 if (useTableTag) titleHtml += "<td class=\"res_title_id\">";
@@ -994,7 +994,7 @@ void DatInfo::createTitleHtml(RESDAT& resdat, QString& titleHtml)
994994 if (useTableTag) titleHtml += "</td>";
995995 }
996996
997- /* BE */
997+ // BE
998998 if (!resdat.be.isEmpty()) {
999999
10001000 if (useTableTag) titleHtml += "<td class=\"res_title_be\">";
@@ -1002,7 +1002,7 @@ void DatInfo::createTitleHtml(RESDAT& resdat, QString& titleHtml)
10021002 if (useTableTag) titleHtml += "</td>";
10031003 }
10041004
1005- /* host */
1005+ // host
10061006 if (!resdat.host.isEmpty()) {
10071007
10081008 if (useTableTag) titleHtml += "<td class=\"res_title_host\">";
--- a/src/libkita/datmanager.cpp
+++ b/src/libkita/datmanager.cpp
@@ -76,8 +76,8 @@ DatInfo * DatManager::getDatInfoPointer() const
7676
7777 DatInfo* DatManager::getDatInfo(bool checkCached) const
7878 {
79- /* search */
80- /* create and record instance */
79+ // search
80+ // create and record instance
8181 return (m_searchDatInfo != 0)
8282 ? m_searchDatInfo : recordDatInfo(checkCached);
8383 }
@@ -88,7 +88,7 @@ DatInfo* DatManager::getDatInfo(bool checkCached) const
8888 DatInfo* DatManager::searchDatInfo() const
8989 {
9090 if (m_datUrl.isEmpty())
91- return 0; /* This url is not recorded in BoardManager. */
91+ return 0; // This url is not recorded in BoardManager.
9292 if (m_datInfoList.isEmpty())
9393 return 0;
9494
@@ -102,7 +102,7 @@ DatInfo* DatManager::searchDatInfo() const
102102
103103 if (m_datUrl == datInfo->url()) {
104104
105- /* LRU */
105+ // LRU
106106 if (i) {
107107 m_datInfoList.erase(it);
108108 m_datInfoList.prepend(datInfo);
@@ -122,13 +122,13 @@ DatInfo* DatManager::searchDatInfo() const
122122 DatInfo* DatManager::recordDatInfo(bool checkCached) const
123123 {
124124 if (m_datUrl.isEmpty())
125- return 0; /* This url is not recorded in BoardManager. */
125+ return 0; // This url is not recorded in BoardManager.
126126
127- /* create DatInfo & read cached data */
127+ // create DatInfo & read cached data
128128 DatInfo* datInfo = new DatInfo(m_datUrl);
129129
130- /* Does cache exist ? */
131- /* If cache does not exist, delete DatInfo here. */
130+ // Does cache exist?
131+ // If cache does not exist, delete DatInfo here.
132132 if (checkCached && datInfo->getReadNum() == 0) {
133133 delete datInfo;
134134 return 0;
@@ -136,7 +136,7 @@ DatInfo* DatManager::recordDatInfo(bool checkCached) const
136136
137137 m_datInfoList.prepend(datInfo);
138138
139- /* delete the all old instances (LRU algorithm)*/
139+ // delete the all old instances (LRU algorithm)
140140 if (m_datInfoList.count() > DMANAGER_MAXQUEUE) {
141141 for (int i = DMANAGER_MAXQUEUE; i < m_datInfoList.count(); i++) {
142142 DatInfo* deleteInfo = m_datInfoList.at(i);
@@ -194,23 +194,23 @@ bool DatManager::deleteCache() const
194194 if (thread->readNum() == 0)
195195 return false;
196196
197- /* init DatInfo */
197+ // init DatInfo
198198 if (m_searchDatInfo && !m_searchDatInfo->deleteCache()) {
199199 return false;
200200 }
201201
202- /* reset readNum & veiwPos */
202+ // reset readNum & veiwPos
203203 thread->setReadNum(0);
204204 thread->setViewPos(0);
205205
206- /* delete cache */
206+ // delete cache
207207 Cache cache(m_datUrl);
208208 QString cachePath = cache.getPath();
209209 QString indexPath = cache.getIndexPath();
210210 QFile::remove(indexPath);
211211 QFile::remove(cachePath);
212212
213- /* delete log from "cache" */
213+ // delete log from "cache"
214214 ThreadInfo::removeThreadInfo(m_datUrl.prettyUrl());
215215 return true;
216216 }
@@ -351,11 +351,11 @@ void DatManager::setViewPos(int num) const
351351 if (thread != 0)
352352 thread->setViewPos(num);
353353
354- /* save idx */
354+ // save idx
355355 ThreadIndex threadIndex(m_url);
356356 threadIndex.setViewPos(num);
357357
358- /* save "cache" */
358+ // save "cache"
359359 ThreadInfo::setReadNum(m_datUrl.prettyUrl(), num);
360360 }
361361
--- a/src/libkita/flashcgi.cpp
+++ b/src/libkita/flashcgi.cpp
@@ -21,7 +21,7 @@ QString FlashCGI::buildPostStr(const PostData& data)
2121 QString ret;
2222 int mib = m_writeCodec->mibEnum();
2323
24- (ret += "submit=") += "%8f%91%82%ab%8d%9e%82%de"; /* kakikomu */
24+ (ret += "submit=") += "%8f%91%82%ab%8d%9e%82%de"; // kakikomu
2525 (ret += "&FROM=") += encodeString(data.name(), mib);
2626 (ret += "&mail=") += encodeString(data.mail(), mib);
2727 (ret += "&MESSAGE=") += encodeString(data.body(), mib);
--- a/src/libkita/jbbs.cpp
+++ b/src/libkita/jbbs.cpp
@@ -26,7 +26,7 @@ QString JBBS::buildPostStr(const PostData& data)
2626 QString ret;
2727 int mib = m_writeCodec->mibEnum();
2828
29- ret += "submit=%8f%91%82%ab%8d%9e%82%de"; /* kakikomu */
29+ ret += "submit=%8f%91%82%ab%8d%9e%82%de"; // kakikomu
3030 ret += "&NAME=" + encodeString(data.name(), mib);
3131 ret += "&MAIL=" + encodeString(data.mail(), mib);
3232 ret += "&MESSAGE=" + encodeString(data.body(), mib).replace(';', "%3B");
--- a/src/libkita/k2ch.cpp
+++ b/src/libkita/k2ch.cpp
@@ -22,22 +22,22 @@ QString K2ch::buildPostStr(const PostData& data)
2222
2323 int mib = m_writeCodec->mibEnum();
2424
25- ret += "submit=%8f%91%82%ab%8d%9e%82%de"; /* kakikomu */
25+ ret += "submit=%8f%91%82%ab%8d%9e%82%de"; // kakikomu
2626
27- /* from, mail, message, bbs */
27+ // from, mail, message, bbs
2828 ret += "&FROM=" + encodeString(data.name(), mib);
2929 ret += "&mail=" + encodeString(data.mail(), mib);
3030 ret += "&MESSAGE=" + encodeString(data.body(), mib);
3131 ret += "&bbs=" + data.boardId();
3232 ret += "&tepo=don";
3333
34- /* key */
34+ // key
3535 ret += "&key=" + data.threadId();
3636
37- /* time */
37+ // time
3838 ret += "&time=" + QString::number(data.serverTime());
3939
40- /* login */
40+ // login
4141 if (!data.sessionId().isEmpty()) {
4242 ret += "&sid=" + data.sessionId();
4343 }
--- a/src/libkita/kita_misc.cpp
+++ b/src/libkita/kita_misc.cpp
@@ -64,7 +64,7 @@ QString Kita::getWriteUrl(const KUrl& m_datUrl)
6464 int m_bbstype = db.type();
6565 QString m_bbscgi;
6666
67- /* set path of bbs.cgi */
67+ // set path of bbs.cgi
6868 switch (m_bbstype) {
6969
7070 case Board_JBBS: {
@@ -138,27 +138,27 @@ QString Kita::convertUrl(
138138
139139 if (url.isEmpty()) return QString();
140140
141- /* cache */
141+ // cache
142142 if (m_prevConvMode == mode && m_prevConvUrl == url.prettyUrl()) {
143143
144144 refstr = m_prevConvRefstr;
145145 return m_prevConvNewUrl;
146146 }
147147
148- /* Is board recorded ? */
148+ // Is board recorded?
149149 BoardDatabase db(url);
150150 BoardData* bdata = db.getBoardData();
151151 if (bdata == 0) return QString();
152152
153153 QString urlstr = url.prettyUrl();
154154
155- /* get thread & reference */
155+ // get thread & reference
156156 QString thread;
157157 QString refBase;
158158
159159 if (urlstr.contains("/dat/")) {
160160
161- /* url = (hostname)/(rootPath)/(bbsPath)/dat/(thread_ID).(ext)#(refBase) */
161+ // url = (hostname)/(rootPath)/(bbsPath)/dat/(thread_ID).(ext)#(refBase)
162162 thread = url.fileName().remove(bdata->ext());
163163 refBase = url.ref();
164164 } else if (urlstr.contains(bdata->delimiter())) {
@@ -166,15 +166,15 @@ QString Kita::convertUrl(
166166 QString tmpstr;
167167 switch (bdata->type()) {
168168
169- /* machi BBS */
170- /* ex.) If url = http://kanto.machi.to/bbs/read.pl?BBS=kana&KEY=1096716679 ,
171- then, thread = 1096716679 */
169+ // machi BBS
170+ // ex.) If url = http://kanto.machi.to/bbs/read.pl?BBS=kana&KEY=1096716679 ,
171+ // then, thread = 1096716679
172172 case Board_MachiBBS:
173173 thread = url.queryItem("KEY");
174174 refBase.clear();
175175 break;
176176
177- /* url = (hostname)/(rootPath)/(delimiter)/(bbsPath)/(thread_ID)/(refBase) */
177+ // url = (hostname)/(rootPath)/(delimiter)/(bbsPath)/(thread_ID)/(refBase)
178178 default:
179179 tmpstr = urlstr.section(bdata->delimiter() + bdata->bbsPath(), 1, 1);
180180 thread = tmpstr.section('/', 1, 1);
@@ -191,7 +191,7 @@ QString Kita::convertUrl(
191191 else refstr = refBase;
192192 }
193193
194- /* create new URL */
194+ // create new URL
195195 QString newUrl;
196196 if (mode == URLMODE_DAT) newUrl = bdata->basePath() + "dat/" + thread + bdata->ext();
197197 else {
@@ -209,7 +209,7 @@ QString Kita::convertUrl(
209209 }
210210 }
211211
212- /* cache */
212+ // cache
213213 m_prevConvMode = mode;
214214 m_prevConvUrl = url.prettyUrl();
215215 m_prevConvNewUrl = newUrl;
@@ -226,7 +226,7 @@ QString Kita::convertUrl(
226226 */
227227 QString Kita::datToOfflaw(const KUrl& datUrl)
228228 {
229- /* TODO: not tested. */
229+ // TODO: not tested.
230230 KUrl url(datUrl);
231231 QString root = url.host();
232232
@@ -338,7 +338,7 @@ QString Kita::ParseMachiBBSOneLine(const QString& inputLine, int& nextNum)
338338 QRegExp regexp3("<dt>(\\d*) .*<font color=\"#......\"><b> (.*) </b></font> .* (..../../..).* (..:..:..) ID:([^<]*) <font size=.>\\[ ([^ ]*) \\]</font><br><dd>(.*)");
339339 QRegExp regexp4("<dt>(\\d*) .*<a href=\"mailto:(.*)\"><b> (.*) </B></a> .* (..../../..).* (..:..:..) ID:([^<]*) <font size=.>\\[ ([^ ]*) \\]</font><br><dd>(.*)");
340340
341- /* abone */
341+ // abone
342342 QRegExp regexp5("<dt>(\\d*) .*<br><dd>.*");
343343
344344
@@ -382,14 +382,14 @@ QString Kita::ParseMachiBBSOneLine(const QString& inputLine, int& nextNum)
382382 host = regexp4.cap(7);
383383 message = regexp4.cap(8);
384384
385- } else if (regexp5.indexIn(m_machiLine) != -1) { /* abone */
385+ } else if (regexp5.indexIn(m_machiLine) != -1) { // abone
386386
387387 num = regexp5.cap(1).toInt();
388388 m_machiLine.clear();
389389 if (num == nextNum) return "abone<><><>abone<>";
390390 else return QString();
391391
392- } else if (title_regexp.indexIn(m_machiLine) != -1) { /* get title */
392+ } else if (title_regexp.indexIn(m_machiLine) != -1) { // get title
393393
394394 m_machiSubject = title_regexp.cap(1);
395395 m_machiLine.clear();
@@ -431,11 +431,11 @@ QString Kita::ParseJBBSOneLine(const QString& line, int& nextNum)
431431
432432 if (num < nextNum) return QString();
433433
434- /* remove tag */
434+ // remove tag
435435 QRegExp rex("<[^<]*>");
436436 name.remove(rex);
437437
438- /* remove week */
438+ // remove week
439439 rex = QRegExp("\\(.*\\)");
440440 date.remove(rex);
441441
@@ -464,7 +464,7 @@ QString Kita::ParseFlashCGIOneLine(const QString& line)
464464 QString id = list[ 6 ];
465465 QString host = list[ 7 ];
466466
467- /* remove tag */
467+ // remove tag
468468 QRegExp rex("<[^<]*>");
469469 name.remove(rex);
470470
--- a/src/libkita/machibbs.cpp
+++ b/src/libkita/machibbs.cpp
@@ -21,7 +21,7 @@ QString MachiBBS::buildPostStr(const PostData& data)
2121 QString ret;
2222 int mib = m_writeCodec->mibEnum();
2323
24- (ret += "submit=") += "%8f%91%82%ab%8d%9e%82%de"; /* kakikomu */
24+ (ret += "submit=") += "%8f%91%82%ab%8d%9e%82%de"; // kakikomu
2525 (ret += "&NAME=") += encodeString(data.name(), mib);
2626 (ret += "&MAIL=") += encodeString(data.mail(), mib);
2727 (ret += "&MESSAGE=") += encodeString(data.body(), mib);
--- a/src/libkita/parser.cpp
+++ b/src/libkita/parser.cpp
@@ -96,20 +96,20 @@ void Parser::datToText(
9696
9797 case '<':
9898
99- /* " <br> " */
99+ // " <br> "
100100 if (chpt[ i + 1 ] == 'b' && chpt[ i + 2 ] == 'r' && chpt[ i + 3 ] == '>') {
101101
102102 unsigned int i2 = i - startPos;
103- if (i > 0 && chpt[ i - 1 ] == ' ') i2--; /* remove space before <br> */
103+ if (i > 0 && chpt[ i - 1 ] == ' ') i2--; // remove space before <br>
104104 text += rawData.mid(startPos, i2) + '\n';
105105 startPos = i + 4;
106- if (chpt[ startPos ] == ' ') startPos++; /* remove space after <br> */
106+ if (chpt[ startPos ] == ' ') startPos++; // remove space after <br>
107107 i = startPos - 1;
108108 }
109109
110- /*----------------------------------------*/
110+ //----------------------------------------
111111
112- /* remove HTML tags <[^>]*> */
112+ // remove HTML tags <[^>]*>
113113 else {
114114
115115 if (i - startPos) text += rawData.mid(startPos, i - startPos);
@@ -119,11 +119,11 @@ void Parser::datToText(
119119
120120 break;
121121
122- /*----------------------------------*/
122+ //----------------------------------
123123
124124 case '&':
125125
126- /* special char */
126+ // special char
127127 {
128128 QString tmpstr;
129129 tmpstr = parseSpecialChar(chpt + i, pos);
@@ -168,11 +168,11 @@ static bool parseResAnchor(
168168 static bool isHYPHEN(unsigned short c)
169169 {
170170
171- /* UTF-16 */
171+ // UTF-16
172172 if (c == '-'
173173 || (c >= 0x2010 && c <= 0x2015)
174174 || (c == 0x2212)
175- || (c == 0xFF0D) /* UTF8: 0xEFBC8D */
175+ || (c == 0xFF0D) // UTF8: 0xEFBC8D
176176 ) {
177177 return true;
178178 }
@@ -190,13 +190,13 @@ static bool parseResAnchor(
190190 refNum[ 1 ] = 0;
191191 pos = 0;
192192
193- /* check '>' twice */
193+ // check '>' twice
194194 for (int i = 0; i < 2; i++) {
195195
196196 if (cdat[ pos ].unicode() == UTF16_BRACKET) {
197197 linkstr += cdat[ pos ];
198198 pos++;
199- } else if (cdat[ pos ] == '&' && cdat[ pos + 1 ] == 'g' /* &gt; */
199+ } else if (cdat[ pos ] == '&' && cdat[ pos + 1 ] == 'g' // &gt;
200200 && cdat[ pos + 2 ] == 't' && cdat[ pos + 3 ] == ';') {
201201 linkstr += '>';
202202 pos += 4;
@@ -204,7 +204,7 @@ static bool parseResAnchor(
204204
205205 }
206206
207- /* check ',' */
207+ // check ','
208208 if (!pos) {
209209 if (cdat[ pos ] == ',' || cdat[ pos ].unicode() == UTF16_COMMA) {
210210 linkstr += ',';
@@ -212,7 +212,7 @@ static bool parseResAnchor(
212212 }
213213 }
214214
215- /* check '=' */
215+ // check '='
216216 if (!pos) {
217217 if (cdat[ pos ] == '=' || cdat[ pos ].unicode() == UTF16_EQ) {
218218 linkstr += '=';
@@ -220,7 +220,7 @@ static bool parseResAnchor(
220220 }
221221 }
222222
223- /* check digits */
223+ // check digits
224224 int hyphen = 0;
225225
226226 for (int i = 0 ; i < KITA_RESDIGIT + 1 && pos < length ; i++, pos++) {
@@ -271,7 +271,7 @@ static void parseName(const QString& rawStr, RESDAT& resdat)
271271 unsigned int length = resdat.name.length();
272272 resdat.nameHTML.clear();
273273
274- /* anchor */
274+ // anchor
275275 while (parseResAnchor(chpt + i, length - i, linkstr, refNum, pos)) {
276276
277277 linkurl = QString("#%1").arg(refNum[ 0 ]);
@@ -290,7 +290,7 @@ static void parseName(const QString& rawStr, RESDAT& resdat)
290290 i += pos;
291291 }
292292
293- /* non-digits strings */
293+ // non-digits strings
294294 if (i < length) {
295295
296296 resdat.nameHTML += "<span class=\"name_noaddr\">";
@@ -329,7 +329,7 @@ static void parseDateId(const QString& rawStr, RESDAT& resdat)
329329 }
330330 resdat.date = rawStr.left(pos);
331331
332- /* id */
332+ // id
333333 if (chpt[ pos ] == 'I' && chpt[ pos + 1 ] == 'D') {
334334 pos += 3;
335335 startpos = pos;
@@ -342,7 +342,7 @@ static void parseDateId(const QString& rawStr, RESDAT& resdat)
342342
343343 if (pos >= length) return ;
344344
345- /* be */
345+ // be
346346 if (chpt[ pos ] == 'B' && chpt[ pos + 1 ] == 'E') {
347347 pos += 3;
348348 startpos = pos;
@@ -358,7 +358,7 @@ static void parseDateId(const QString& rawStr, RESDAT& resdat)
358358
359359 if (pos >= length) return ;
360360
361- /* host */
361+ // host
362362 if (chpt[ pos ] == 'H' && chpt[ pos + 1 ] == 'O') {
363363 pos += 5;
364364 startpos = pos;
@@ -393,7 +393,7 @@ static bool parseLink(
393393 )
394394 {
395395
396- /*-----------------------------*/
396+ //-----------------------------
397397
398398 linkstr.clear();
399399 linkurl.clear();
@@ -451,14 +451,14 @@ static bool createResAnchor(const QString &rawStr, RESDAT& resdat,
451451 unsigned int pos;
452452 unsigned int length = rawStr.length();
453453
454- /* parse anchor */
454+ // parse anchor
455455 if (!parseResAnchor(chpt + i, length - i, linkstr, refNum, pos)) {
456456
457457 i += pos - 1;
458458 return false;
459459 }
460460
461- /* create anchor */
461+ // create anchor
462462 resdat.bodyHTML += rawStr.mid(startPos, i - startPos);
463463 linkurl = QString("#%1").arg(refNum[ 0 ]);
464464 if (refNum[ 1 ]) linkurl += QString("-%1").arg(refNum[ 1 ]);
@@ -467,7 +467,7 @@ static bool createResAnchor(const QString &rawStr, RESDAT& resdat,
467467 resdat.bodyHTML += linkstr;
468468 resdat.bodyHTML += "</a>";
469469
470- /* add anchor to ancList */
470+ // add anchor to ancList
471471 ANCNUM anctmp;
472472 if (refNum[ 1 ] < refNum[ 0 ]) refNum[ 1 ] = refNum[ 0 ];
473473 anctmp.from = refNum[ 0 ];
@@ -498,42 +498,41 @@ static void parseBody(const QString &rawStr, RESDAT& resdat)
498498
499499 bool ancChain = false;
500500
501- /* ancChain is chain for anchor. For examle, if anchor "&gt;2"
502- appeared, ancChain is set to true. Moreover, if next strings
503- are "=5", anchor for 5 is also set. Thus, we can obtain anchors
504- for strings "&gt;2=5" as follows:
505-
506- <a href="#2">&gt;2</a><a href="#5">=5</a>
507- */
501+ // ancChain is chain for anchor. For examle, if anchor "&gt;2"
502+ // appeared, ancChain is set to true. Moreover, if next strings
503+ // are "=5", anchor for 5 is also set. Thus, we can obtain anchors
504+ // for strings "&gt;2=5" as follows:
505+ //
506+ // <a href="#2">&gt;2</a><a href="#5">=5</a>
508507
509508 int offset = 0;
510- if (chpt[ 0 ] == ' ') offset = 1; /* remove one space after <> */
509+ if (chpt[ 0 ] == ' ') offset = 1; // remove one space after <>
511510 for (unsigned int i = startPos = offset ; i < length ; i++) {
512511
513512 switch (chpt[ i ].unicode()) {
514513
515514 case '<':
516515
517- /* " <br> " */
516+ // " <br> "
518517 if (chpt[ i + 1 ] == 'b' && chpt[ i + 2 ] == 'r' && chpt[ i + 3 ] == '>') {
519518
520- /* reset anchor chain */
519+ // reset anchor chain
521520 ancChain = false;
522521
523522 unsigned int i2 = i - startPos;
524- if (i > 0 && chpt[ i - 1 ] == ' ') i2--; /* remove space before <br> */
523+ if (i > 0 && chpt[ i - 1 ] == ' ') i2--; // remove space before <br>
525524 resdat.bodyHTML += rawStr.mid(startPos, i2);
526525
527526 resdat.bodyHTML += "<br>";
528527
529528 startPos = i + 4;
530- if (chpt[ startPos ] == ' ') startPos++; /* remove space after <br> */
529+ if (chpt[ startPos ] == ' ') startPos++; // remove space after <br>
531530 i = startPos - 1;
532531 }
533532
534- /*----------------------------------------*/
533+ //----------------------------------------
535534
536- /* remove HTML tags <[^>]*> */
535+ // remove HTML tags <[^>]*>
537536 else {
538537
539538 if (i - startPos) resdat.bodyHTML += rawStr.mid(startPos, i - startPos);
@@ -543,9 +542,9 @@ static void parseBody(const QString &rawStr, RESDAT& resdat)
543542
544543 break;
545544
546- /*----------------------------------------*/
545+ //----------------------------------------
547546
548- case 'h': /* "http://" or "ttp://" or "tp:" */
547+ case 'h': // "http://" or "ttp://" or "tp:"
549548 case 't':
550549 {
551550 unsigned int pos = 0;
@@ -562,25 +561,25 @@ static void parseBody(const QString &rawStr, RESDAT& resdat)
562561
563562 break;
564563
565- /*----------------------------------*/
564+ //----------------------------------
566565
567566 case '&':
568567
569- /* &gt; */
568+ // &gt;
570569 if (chpt[ i + 1 ] == 'g' && chpt[ i + 2 ] == 't' && chpt[ i + 3 ] == ';')
571570 ancChain = createResAnchor(rawStr, resdat, chpt, i, startPos);
572571
573572 break;
574573
575- /*----------------------------------------*/
574+ //----------------------------------------
576575
577- /* unicode '>' */
576+ // unicode '>'
578577 case UTF16_BRACKET:
579578
580579 ancChain = createResAnchor(rawStr, resdat, chpt, i, startPos);
581580 break;
582581
583- /*----------------------------------*/
582+ //----------------------------------
584583
585584 default:
586585
@@ -615,14 +614,14 @@ bool Parser::parseResDat(RESDAT& resdat, QString& subject)
615614 resdat.broken = false;
616615 resdat.anclist.clear();
617616
618- /* search the staring positions of each section to split raw data. */
617+ // search the staring positions of each section to split raw data.
619618 const QChar *chpt = resdat.linestr.unicode();
620619 unsigned int length = resdat.linestr.length();
621620 unsigned int section = 0;
622621 unsigned int sectionPos[ 5 ];
623622 for (unsigned int i = 0 ; i < length ; i++) {
624623
625- /* sections are splitted by "<>" */
624+ // sections are splitted by "<>"
626625 if (chpt[ i ] == '<' && chpt[ i + 1 ] == '>') {
627626 section++;
628627
@@ -636,7 +635,7 @@ bool Parser::parseResDat(RESDAT& resdat, QString& subject)
636635 }
637636 }
638637
639- /* broken data */
638+ // broken data
640639 if (section != 4) {
641640 resdat.broken = true;
642641 return true;
@@ -644,23 +643,23 @@ bool Parser::parseResDat(RESDAT& resdat, QString& subject)
644643
645644 // qDebug("[%d] %d %d %d %d",section, sectionPos[1],sectionPos[2],sectionPos[3],sectionPos[4]);
646645
647- /* name */
646+ // name
648647 length = sectionPos[ 1 ] - 2 ;
649648 parseName(resdat.linestr.mid(0, length), resdat);
650649
651- /* mail */
650+ // mail
652651 length = sectionPos[ 2 ] - 2 - sectionPos[ 1 ];
653652 datToText(resdat.linestr.mid(sectionPos[ 1 ], length), resdat.address);
654653
655- /* date, ID, host */
654+ // date, ID, host
656655 length = sectionPos[ 3 ] - 2 - sectionPos[ 2 ];
657656 parseDateId(resdat.linestr.mid(sectionPos[ 2 ], length), resdat);
658657
659- /* body */
658+ // body
660659 length = sectionPos[ 4 ] - 2 - sectionPos[ 3 ];
661660 parseBody(resdat.linestr.mid(sectionPos[ 3 ], length), resdat);
662661
663- /* subject */
662+ // subject
664663 subject = resdat.linestr.mid(sectionPos[ 4 ]);
665664
666665 return true;
--- a/src/libkita/postdata.cpp
+++ b/src/libkita/postdata.cpp
@@ -25,7 +25,7 @@ PostData::PostData(const KUrl& datUrl, const QString& name, const QString& mail,
2525 DatManager datManager(m_datUrl);
2626 m_threadId = datManager.threadId();
2727 m_serverTime = datManager.getServerTime();
28- /* login */
28+ // login
2929 if (datManager.is2chThread() && Account::isLogged()) {
3030 m_sessionId = KUrl::toPercentEncoding(Account::getSessionId());
3131 }
--- a/src/libkita/thread.cpp
+++ b/src/libkita/thread.cpp
@@ -38,11 +38,11 @@ const QString& Thread::threadName() const
3838 void Thread::setThreadName(const QString& name)
3939 {
4040 QString threadName = name;
41- /* remove space */
41+ // remove space
4242 QRegExp qrx(" +$");
4343 threadName.remove(qrx);
4444
45- /* unescape */
45+ // unescape
4646 threadName.replace("&lt;", "<").replace("&gt;", ">").replace("&amp;", "&");
4747
4848 m_threadName = threadName;
--- a/src/libkita/threadindex.cpp
+++ b/src/libkita/threadindex.cpp
@@ -91,12 +91,12 @@ void ThreadIndex::setMarkList(const QList<int>& markList)
9191 void ThreadIndex::loadIndex(Thread* thread, bool checkCached) const
9292 {
9393 KConfig config(m_indexPath);
94- /* load read number */
94+ // load read number
9595 int readNum = getReadNumPrivate(config, checkCached);
96- if (readNum == 0) return ; /* cache does not exist. */
96+ if (readNum == 0) return ; // cache does not exist.
9797 thread->setReadNum(readNum);
9898
99- /* load thread name */
99+ // load thread name
100100 QString subject = getSubjectPrivate(config);
101101 if (subject.isEmpty() && !thread->threadName().isEmpty()) {
102102 subject = thread->threadName();
@@ -106,15 +106,15 @@ void ThreadIndex::loadIndex(Thread* thread, bool checkCached) const
106106 if (subject.isEmpty()) thread->setThreadName("?");
107107 else thread->setThreadName(subject);
108108
109- /* load res number */
109+ // load res number
110110 thread->setResNum(getResNumPrivate(config));
111111
112- /* load view pos */
112+ // load view pos
113113 thread->setViewPos(getViewPosPrivate(config));
114114 if (thread->viewPos() > thread->readNum())
115115 thread->setReadNum(thread->viewPos());
116116
117- /* load mark */
117+ // load mark
118118 thread->setMarkList(getMarkListPrivate(config));
119119 }
120120
@@ -123,28 +123,28 @@ void ThreadIndex::loadIndex(Thread* thread, bool checkCached) const
123123 /* save thread information */ /* public */
124124 void ThreadIndex::saveIndex(const Thread* thread)
125125 {
126- /* If readNum == 0, delete idx file */
126+ // If readNum == 0, delete idx file
127127 if (thread->readNum() == 0) {
128128 QFile::remove(m_indexPath);
129129 }
130130 KConfig config(m_indexPath);
131131
132- /* save thread name */
132+ // save thread name
133133 setSubjectPrivate(config, thread->threadName());
134134
135- /* save res number */
135+ // save res number
136136 setResNumPrivate(config, thread->resNum());
137137
138- /* save read number */
138+ // save read number
139139 setReadNumPrivate(config, thread->readNum());
140140
141- /* save view pos */
141+ // save view pos
142142 setViewPosPrivate(config, thread->viewPos());
143143
144- /* save mark */
144+ // save mark
145145 setMarkListPrivate(config, thread->markList());
146146
147- /* save "cache" */
147+ // save "cache"
148148 KUrl datUrl = getDatUrl(m_url);
149149 int num = (thread->viewPos() ? thread->viewPos() : thread->readNum());
150150 ThreadInfo::setReadNum(datUrl.prettyUrl(), num);
@@ -172,7 +172,7 @@ int ThreadIndex::getResNumPrivate(KConfig& config) const
172172 {
173173 int resNum = config.group("").readEntry("ResNum", 0);
174174
175- /* use obsoleted "cache" file */
175+ // use obsoleted "cache" file
176176 if (!resNum) {
177177 KUrl datUrl = getDatUrl(m_url);
178178 resNum = ThreadInfo::readNum(datUrl.prettyUrl());
@@ -194,7 +194,7 @@ void ThreadIndex::setResNumPrivate(KConfig& config, int resNum)
194194 /* private */
195195 int ThreadIndex::getReadNumPrivate(KConfig& config, bool checkCached) const
196196 {
197- /* If cache does not exist, return 0 */
197+ // If cache does not exist, return 0
198198 if (checkCached) {
199199 Cache cache(m_url);
200200 QString path = cache.getPath();
@@ -207,10 +207,10 @@ int ThreadIndex::getReadNumPrivate(KConfig& config, bool checkCached) const
207207
208208 if (!readNum) {
209209
210- /* use ViewPos instead of ReadNum. */
210+ // use ViewPos instead of ReadNum.
211211 readNum = config.group("").readEntry("ViewPos", 0);
212212
213- /* use obsoleted "cache" file */
213+ // use obsoleted "cache" file
214214 if (!readNum) {
215215 KUrl datUrl = getDatUrl(m_url);
216216 readNum = ThreadInfo::readNum(datUrl.prettyUrl());
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -360,7 +360,7 @@ void MainWindow::setupView()
360360
361361 setCentralWidget(mainWidget);
362362
363- /* write dock */
363+ // write dock
364364 m_writeTab = new WriteTabWidget(0);
365365 ViewMediator::getInstance()->setWriteTabWidget(m_writeTab);
366366 }
--- a/src/respopup.cpp
+++ b/src/respopup.cpp
@@ -102,14 +102,14 @@ void ResPopup::adjustSize()
102102 QRect qr = curnode.getRect();
103103 int tmpwd = qr.right() - qr.left();
104104
105- /*----------------------------------*/
105+ //----------------------------------
106106
107107 if (curnode.nodeType() == DOM::Node::TEXT_NODE) {
108108 if (xx == 0) xx = qr.left();
109109 width += tmpwd;
110110 }
111111
112- /*----------------------------------*/
112+ //----------------------------------
113113
114114 else if (curnode.nodeName().string() == "div") {
115115 if (leftmrg == 0) leftmrg = qr.left();
@@ -117,7 +117,7 @@ void ResPopup::adjustSize()
117117 xx = 0;
118118 }
119119
120- /*----------------------------------*/
120+ //----------------------------------
121121
122122 else if (curnode.nodeName().string() == "br") {
123123 width = 0;
@@ -125,12 +125,12 @@ void ResPopup::adjustSize()
125125 }
126126
127127
128- /*----------------------------------*/
128+ //----------------------------------
129129
130130 if (leftmrg + xx + width > maxwidth) maxwidth = leftmrg + xx + width;
131131 if (qr.bottom() > maxheight) maxheight = qr.bottom();
132132
133- /* move to the next node */
133+ // move to the next node
134134 DOM::Node next = curnode.firstChild();
135135
136136 if (next.isNull()) next = curnode.nextSibling();
@@ -166,11 +166,11 @@ void ResPopup::adjustPos(const QPoint& point)
166166 POS_RightDown
167167 };
168168
169- /* config */
169+ // config
170170
171171 const int mrg = 16;
172172
173- /*----------------------------*/
173+ //----------------------------
174174
175175 if (!m_htmlPart) return ;
176176
@@ -276,11 +276,11 @@ void ResPopup::adjustPos(const QPoint& point)
276276 /* move mouse pointer above the popup frame */ /* public */
277277 void ResPopup::moveMouseAbove()
278278 {
279- /* config */
279+ // config
280280
281281 const int mrg = 10;
282282
283- /*-------------------------------*/
283+ //-------------------------------
284284
285285 QPoint pos = QCursor::pos();
286286 int cx = pos.x(), cy = pos.y();
--- a/src/threadtabwidget.cpp
+++ b/src/threadtabwidget.cpp
@@ -37,7 +37,7 @@ ThreadTabWidget::ThreadTabWidget(QWidget* parent) : TabWidgetBase(parent)
3737
3838 setupActions();
3939
40- /* default view */
40+ // default view
4141 createView(i18nc("@title:tab", "Thread"));
4242 }
4343
@@ -69,11 +69,11 @@ void ThreadTabWidget::slotShowMainThread(const KUrl& url)
6969 setCurrentWidget(view);
7070
7171 if (view->threadUrl().isEmpty()) {
72- /* Show on the default view */
72+ // Show on the default view
7373 view->showThread(datUrl, jumpNum);
7474 } else {
75- /* The view is already shown */
76- /* TODO: jump to jumpNum after reloading */
75+ // The view is already shown
76+ // TODO: jump to jumpNum after reloading
7777
7878 view->slotReloadButton(jumpNum);
7979 }
@@ -139,7 +139,7 @@ ThreadView* ThreadTabWidget::findMainView(const KUrl& url)
139139 if (view->getViewMode() == VIEWMODE_MAINVIEW) {
140140
141141 if (view->datUrl() == datUrl
142- || view->datUrl().isEmpty() /* default view */
142+ || view->datUrl().isEmpty() // default view
143143 ) return view;
144144 }
145145 }
@@ -187,7 +187,7 @@ void ThreadTabWidget::deleteWidget(QWidget* w)
187187 ViewMediator::getInstance()->setMainStatus(QString());
188188 ViewMediator::getInstance()->setMainUrlLine(KUrl());
189189
190- /* default view */
190+ // default view
191191 ThreadView * threadView = createView(i18nc("@title:tab", "Thread"));
192192
193193 if (threadView) {
@@ -350,8 +350,8 @@ void ThreadTabWidget::contextMenuEvent(QContextMenuEvent* e)
350350 popup.addAction(act);
351351 }
352352 popup.exec(e->globalPos());
353-/* KActionCollection * collection = client->actionCollection();
354- KAction* action;
355- action = new KAction(i18n("goback anchor"), SmallIcon("idea"), KShortcut(), m_threadPart, SLOT(gobackAnchor()), collection, "goback_anchor");
356- emit popupMenu(client, global, url, mimeType, mode);*/ // TODO
353+// KActionCollection * collection = client->actionCollection();
354+// KAction* action;
355+// action = new KAction(i18n("goback anchor"), SmallIcon("idea"), KShortcut(), m_threadPart, SLOT(gobackAnchor()), collection, "goback_anchor");
356+// emit popupMenu(client, global, url, mimeType, mode); // TODO
357357 }
--- a/src/threadview.cpp
+++ b/src/threadview.cpp
@@ -40,7 +40,7 @@ ThreadView::ThreadView(ThreadTabWidget* parent)
4040 {
4141 m_parent = parent;
4242
43- /* copied from Base class */
43+ // copied from Base class
4444 setFocusPolicy(Qt::ClickFocus);
4545 threadViewBaseLayout = new QVBoxLayout(this);
4646
@@ -98,7 +98,7 @@ ThreadView::ThreadView(ThreadTabWidget* parent)
9898 threadViewBaseLayout->addWidget(threadFrame);
9999 resize(QSize(870, 480).expandedTo(minimumSizeHint()));
100100 setAttribute(Qt::WA_WState_Polished);
101- /* copy end */
101+ // copy end
102102
103103 m_threadPart = new HTMLPart(threadFrame);
104104 QHBoxLayout* aLayout = new QHBoxLayout(threadFrame);
@@ -279,21 +279,21 @@ void ThreadView::setFocus()
279279 /*-------*/
280280 void ThreadView::setup(const KUrl& datUrl, int mode)
281281 {
282- /* config. */
282+ // config.
283283
284- /*---------------------------------------*/
285- /* setup */
284+ //---------------------------------------
285+ // setup
286286
287287 m_datUrl = getDatUrl(datUrl);
288288
289- /* setup HTMLPart */
289+ // setup HTMLPart
290290 int partMode = HTMLPART_MODE_MAINPART;
291291 m_threadPart->setup(partMode, m_datUrl);
292292
293- /* mode. Mode is defined in threadview.h */
293+ // mode. Mode is defined in threadview.h
294294 m_viewmode = mode;
295295
296- /* reset search direction */
296+ // reset search direction
297297 m_revsearch = false;
298298 }
299299
@@ -304,7 +304,7 @@ void ThreadView::setup(const KUrl& datUrl, int mode)
304304 /*--------------------------------------------------------*/
305305 void ThreadView::showThread(const KUrl& datUrl, int num)
306306 {
307- /* If this widget is not parent, then do nothing. */
307+ // If this widget is not parent, then do nothing.
308308 if (m_viewmode != VIEWMODE_MAINVIEW) return ;
309309
310310 if (num == 0) num = DatManager(datUrl).getViewPos();
@@ -313,14 +313,14 @@ void ThreadView::showThread(const KUrl& datUrl, int num)
313313 topLevelWidget() ->raise();
314314 activateWindow();
315315
316- /* setup */
316+ // setup
317317 setup(datUrl, VIEWMODE_MAINVIEW);
318318
319- /* get log from cahce */
319+ // get log from cahce
320320 m_rescode = 200;
321321 if (!m_threadPart->load(num)) showStatusBar("");
322322
323- /* update data */
323+ // update data
324324 slotUpdateInfo();
325325 slotReloadButton();
326326 }
@@ -345,13 +345,13 @@ void ThreadView::slotReloadButton(int jumpNum)
345345 /* stop loading the thread */ /* public slot */
346346 void ThreadView::slotStopLoading()
347347 {
348- /* hide popup */
348+ // hide popup
349349 if (m_threadPart->isPopupVisible()) {
350350 m_threadPart->slotDeletePopup();
351351 return ;
352352 }
353353
354- /* unforcus search combo */
354+ // unforcus search combo
355355 if (searchCombo->hasFocus()) {
356356 setFocus();
357357 return ;
@@ -387,7 +387,7 @@ void ThreadView::showStatusBar(const QString &information)
387387 if (broken)
388388 info += " " + i18nc("@info:status", "This thread is broken.");
389389
390- /* show status bar,caption, url */
390+ // show status bar,caption, url
391391 infostr = datManager.threadName() +
392392 QString(" [Total: %1 New: %2] %3 k").arg(resNum)
393393 .arg(resNum - viewPos).arg(datSize / 1024)
@@ -419,7 +419,7 @@ void ThreadView::slotUpdateInfo()
419419 m_rescode = datManager.getResponseCode();
420420 m_serverTime = datManager.getServerTime();
421421
422- /* uptate information */
422+ // uptate information
423423 BoardDatabase db(m_datUrl);
424424 setSubjectLabel(db.boardName(), datManager.threadName() + QString(" (%1)")
425425 .arg(datManager.getReadNum()), db.boardUrl());
@@ -439,7 +439,7 @@ void ThreadView::slotUpdateInfo()
439439
440440 showStatusBar("");
441441
442- emit showThreadCompleted(); /* to ThreadPart */
442+ emit showThreadCompleted(); // to ThreadPart
443443 }
444444
445445
@@ -450,12 +450,12 @@ void ThreadView::slotUpdateInfo()
450450 /*------------------------*/ /* private slots */
451451 void ThreadView::slotSearchButton()
452452 {
453- if (m_datUrl.isEmpty()) return ; /* Nothing is shown on the screen.*/
453+ if (m_datUrl.isEmpty()) return ; // Nothing is shown on the screen.
454454
455455 QString str = searchCombo->currentText();
456456 if (str.at(0) == ':') {
457457
458- /* show res popup */
458+ // show res popup
459459 if (str.at(1) == 'p') {
460460 int refNum = str.mid(2).toInt();
461461 QPoint pos = mapToGlobal(searchCombo->pos());
@@ -463,14 +463,14 @@ void ThreadView::slotSearchButton()
463463 m_threadPart->slotShowResPopup(pos , refNum, refNum);
464464 return ;
465465 }
466- /* find by find dialog */
466+ // find by find dialog
467467 else if (str.at(1) == 'f') {
468468 KAction * act = static_cast< KAction* >(m_threadPart->action("find"));
469469 if (act) act->trigger();
470470 return ;
471471 }
472472
473- /* jump */
473+ // jump
474474 QString anc = str.mid(1);
475475 m_threadPart->gotoAnchor(anc, false);
476476 searchCombo->setFocus();
@@ -487,9 +487,9 @@ void ThreadView::slotSearchPrev() { slotSearchPrivate(true); }
487487 /* private */
488488 void ThreadView::slotSearchPrivate(bool rev)
489489 {
490- if (m_datUrl.isEmpty()) return ; /* Nothing is shown on the screen.*/
490+ if (m_datUrl.isEmpty()) return ; // Nothing is shown on the screen.
491491
492- /* jump */
492+ // jump
493493 QString str = searchCombo->currentText();
494494 if (str.isEmpty()) return ;
495495 if (str.isEmpty()) return ;
@@ -504,7 +504,7 @@ void ThreadView::slotSearchPrivate(bool rev)
504504
505505 if (datManager.checkWord(query, i, false)) {
506506
507- /* if this is parent, then show all responses, and search */
507+ // if this is parent, then show all responses, and search
508508 if (m_viewmode == VIEWMODE_MAINVIEW) m_threadPart->showAll();
509509
510510 insertSearchCombo();
--- a/src/writetabwidget.cpp
+++ b/src/writetabwidget.cpp
@@ -55,7 +55,7 @@ void WriteTabWidget::openWriteView(const KUrl& url,
5555 // return ;
5656 }
5757
58- /* view exists */
58+ // view exists
5959 WriteView* view = findWriteView(url);
6060 if (view) {
6161 if (view->body().length()) {
@@ -64,17 +64,17 @@ void WriteTabWidget::openWriteView(const KUrl& url,
6464 == KMessageBox::No) return;
6565 }
6666
67- /* clear */
67+ // clear
6868 view->setMessage(resStr);
6969 setCurrentWidget(view);
7070 return ;
7171 }
7272
7373 // TODO: refactoring.
74- /* create new write view & add it to tab */
74+ // create new write view & add it to tab
7575 QString threadName;
7676
77- /* write res */
77+ // write res
7878 WriteView* new_dlg;
7979 threadName = DatManager(url).threadName();
8080 new_dlg = new WriteView(this, url);
@@ -119,13 +119,13 @@ void WriteTabWidget::slotChangeWriteTab(const KUrl& url)
119119 int max = count();
120120 if (max == 0) return ;
121121
122- /* disable all ok buttons. */
122+ // disable all ok buttons.
123123 for(int i=0; i < max ; i++) {
124124 view = isWriteView(widget(i));
125125 if (view) view->slotEnableWriting(false);
126126 }
127127
128- /* show current url page. */
128+ // show current url page.
129129 view = findWriteView(url);
130130 if (view) {
131131 if (currentWidget() != view) setCurrentWidget(view);
--- a/src/writeview.cpp
+++ b/src/writeview.cpp
@@ -59,7 +59,7 @@ WriteView::WriteView(WriteTabWidget* parent, const KUrl& url)
5959
6060 void WriteView::initUI()
6161 {
62- /* connect signals */
62+ // connect signals
6363 connect(buttonOk, SIGNAL(clicked()),
6464 SLOT(slotPostMessage()));
6565
@@ -72,10 +72,10 @@ void WriteView::initUI()
7272 connect(bodyText, SIGNAL(textChanged()),
7373 SLOT(slotBodyTextChanged()));
7474
75- /* setup preview view */
75+ // setup preview view
7676 qtw->setCurrentIndex(0);
7777
78- /* setup labels and edit lines */
78+ // setup labels and edit lines
7979 QFont font = GlobalConfig::threadFont();
8080 bodyText->setFont(font);
8181 bodyText->setTabChangesFocus(true);
@@ -105,7 +105,7 @@ void WriteView::initUI()
105105 beBox->setChecked(true);
106106 }
107107
108- /* setup AA */
108+ // setup AA
109109 faceCombo->clear();
110110 faceCombo->setFont(GlobalConfig::threadFont());
111111 faceCombo->addItem("");
@@ -215,10 +215,10 @@ void WriteView::slotPostMessage()
215215 list.append(name);
216216 GlobalConfig::setNameCompletionList(list);
217217
218- /* build post message */
218+ // build post message
219219 QString postStr = buildPostMessage();
220220
221- /* referrer */
221+ // referrer
222222 BoardDatabase db(m_datUrl);
223223 QString refStr = db.boardUrl();
224224
@@ -228,7 +228,7 @@ void WriteView::slotPostMessage()
228228 job->addMetaData("content-type", "Content-type: application/x-www-form-urlencoded");
229229 job->addMetaData("referrer", refStr);
230230
231- /* 2ch.net cookie modify */
231+ // 2ch.net cookie modify
232232 if (m_bbstype == Board_2ch && beBox->isChecked()) {
233233 QString cookie = "Cookie: ";
234234 QString BeMailAddress = AccountConfig::beMailAddress();
@@ -243,7 +243,7 @@ void WriteView::slotPostMessage()
243243 connect(job, SIGNAL(data(KIO::Job*, const QByteArray&)),
244244 this, SLOT(slotRecieveData(KIO::Job*, const QByteArray&)));
245245
246- /* slotPostFinished() is called when done. */
246+ // slotPostFinished() is called when done.
247247 connect(job, SIGNAL(result(KJob*)),
248248 this, SLOT(slotPostFinished(KJob*)));
249249
@@ -296,13 +296,13 @@ void WriteView::processPostFinished()
296296
297297 case K2ch_True:
298298
299- /* save log */
299+ // save log
300300 logPostMessage();
301301
302- /* clear message */
302+ // clear message
303303 setMessage(QString());
304304
305- /* reload thread */
305+ // reload thread
306306 ViewMediator::getInstance()->openThread(m_datUrl);
307307
308308 m_parent->slotCloseCurrentTab();
@@ -318,7 +318,7 @@ void WriteView::processPostFinished()
318318
319319 break;
320320
321- /* eat cookie, then re-post message */
321+ // eat cookie, then re-post message
322322 case K2ch_Cookie:
323323
324324 if (KMessageBox::questionYesNo(0,
@@ -354,7 +354,7 @@ bool WriteView::slotBodyTextChanged()
354354 int length
355355 = QTextCodec::codecForName("Shift_JIS")->fromUnicode(body()).length();
356356
357- /* replace '\n' -> " <br> ", '>' -> "&lt;", and etc. */
357+ // replace '\n' -> " <br> ", '>' -> "&lt;", and etc.
358358 length += ((body().count('\n')) * 5
359359 + (body().count('>')) * 3
360360 + (body().count('<')) * 3
@@ -398,7 +398,7 @@ void WriteView::logPostMessage()
398398 /* get result code from 2ch tag or title. */ /* private */
399399 int WriteView::resultCode(const QString& response) const
400400 {
401- /* see also libkita/kita-utf8.h */
401+ // see also libkita/kita-utf8.h
402402 QString errstr = QString::fromUtf8(KITAUTF8_WRITEERROR);
403403 QString truestr = QString::fromUtf8(KITAUTF8_WRITETRUE);
404404 QString ckstr = QString::fromUtf8(KITAUTF8_WRITECOOKIE);
@@ -407,7 +407,7 @@ int WriteView::resultCode(const QString& response) const
407407 int pos = regexp.indexIn(response);
408408
409409 if (pos != -1) {
410- /* get code from 2ch tag */
410+ // get code from 2ch tag
411411 QString k2ch_X = regexp.cap(1);
412412
413413 if (k2ch_X == "true") return K2ch_True;
@@ -418,7 +418,7 @@ int WriteView::resultCode(const QString& response) const
418418
419419 return K2ch_Unknown;
420420 } else {
421- /* get code from title */
421+ // get code from title
422422 QString title = resultTitle(response);
423423 if (title.isEmpty()) return K2ch_Unknown;
424424
@@ -426,7 +426,7 @@ int WriteView::resultCode(const QString& response) const
426426 if (title.contains(truestr)) return K2ch_True;
427427 if (title.contains(ckstr)) return K2ch_Cookie;
428428
429- /* for Flash CGI */
429+ // for Flash CGI
430430 if (m_bbstype == Board_FlashCGI) {
431431 if (title.contains("ERROR!!")) {
432432 return K2ch_Error;
@@ -435,7 +435,7 @@ int WriteView::resultCode(const QString& response) const
435435 }
436436 }
437437
438- /* for JBBS. adhoc... */
438+ // for JBBS. adhoc...
439439 if (m_bbstype == Board_JBBS) {
440440
441441 // x-euc-jp & euc-jp
旧リポジトリブラウザで表示