OSDN Git Service

Use an initialization list in BoardData
[kita/kita.git] / kita / src / libkita / boardmanager.cpp
index ec8138b..9f5a58b 100644 (file)
@@ -44,15 +44,9 @@ BoardData::BoardData(const QString& boardName,
                       const QString& bbsPath,
                       const QString& ext,
                       int boardtype)
+: m_boardName(boardName), m_readIdx(false), m_rootPath(rootPath),
+    m_delimiter(delimiter), m_bbsPath(bbsPath), m_ext(ext), m_type(boardtype)
 {
-    m_readIdx = false;
-    m_boardName = boardName;
-    m_rootPath = rootPath;
-    m_delimiter = delimiter;
-    m_bbsPath = bbsPath;
-    m_ext = ext;
-    m_type = boardtype;
-
     /* set hostname and create URL of board */
     setHostName(hostname);