Commit 4acabdbb authored by Frederik Schwarzer's avatar Frederik Schwarzer

Fix initialisation lists.

parent 3f1ec84c
......@@ -34,11 +34,25 @@ namespace Kigo {
const int dotPositions19[] = {3,3, 3,9, 3,15, 9,3, 9,9, 9,15, 15,3, 15,9, 15,15};
GameScene::GameScene(Game *game, QObject *parent)
: QGraphicsScene(parent), m_game(game)
, m_showLabels(Preferences::showBoardLabels()), m_showHint(false)
: QGraphicsScene(parent)
, m_game(game)
, m_gamePopup()
, m_showLabels(Preferences::showBoardLabels())
, m_showHint(false)
, m_showMoveNumbers(Preferences::showMoveNumbers())
, m_showPlacementMarker(true), m_showTerritory(false)
, m_boardSize(Preferences::boardSize()), m_placementMarkerItem(0)
, m_showPlacementMarker(true)
, m_showTerritory(false)
, m_boardRect()
, m_mouseRect()
, m_gridRect()
, m_cellSize(0)
, m_stonePixmapSize()
, m_placementMarkerPixmapSize()
, m_boardSize(Preferences::boardSize())
, m_placementMarkerItem(nullptr)
, m_stoneItems()
, m_hintItems()
, m_territoryItems()
{
connect(m_game, &Game::boardChanged, this, &GameScene::updateStoneItems);
connect(m_game, &Game::boardSizeChanged, this, &GameScene::changeBoardSize);
......
......@@ -34,7 +34,8 @@
namespace Kigo {
ThemeRenderer::ThemeRenderer()
: m_renderer(new QSvgRenderer)
: m_currentTheme()
, m_renderer(new QSvgRenderer)
, m_cache(new KPixmapCache(QStringLiteral("kigo-cache")))
{
m_cache->setCacheLimit(3 * 1024);
......
......@@ -28,7 +28,9 @@
namespace Kigo {
SetupWidget::SetupWidget(Game *game, QWidget *parent)
: QWidget(parent), m_game(game)
: QWidget(parent)
, m_game(game)
, m_lastFileName()
, m_lastFixedHandicap(Preferences::fixedHandicapValue())
{
Q_ASSERT(m_game);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment