From 2a987abec3273f00b07b0e5e844d92bbed8a2e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 8 Feb 2016 21:08:29 +0100 Subject: [PATCH] Cosmetics --- src/map.cpp | 3 ++- src/map.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/map.cpp b/src/map.cpp index 5ea50d14..b228e0b0 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -6,7 +6,8 @@ #include "map.h" -Map::Map(const QString &name, const QString &url) +Map::Map(const QString &name, const QString &url, QObject *parent) + : QObject(parent) { _name = name; _url = url; diff --git a/src/map.h b/src/map.h index dd74fab2..69b53f43 100644 --- a/src/map.h +++ b/src/map.h @@ -30,9 +30,9 @@ signals: void loaded(); public: - Map(const QString &name, const QString &url); + Map(const QString &name, const QString &url, QObject *parent = 0); - const QString &name() {return _name;} + const QString &name() const {return _name;} void loadTiles(QList &list); private slots: