OSDN Git Service

Use an initialization list in BoardData
authornogu <nogu@users.sourceforge.jp>
Thu, 11 Feb 2010 06:24:39 +0000 (15:24 +0900)
committernogu <nogu@users.sourceforge.jp>
Thu, 11 Feb 2010 06:24:39 +0000 (15:24 +0900)
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);