From 7c606af63ef80f73e411beaa172f2dd267485f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=20Morschh=C3=A4user?= Date: Wed, 12 Mar 2014 09:11:01 +0100 Subject: [PATCH] Fixed warning regarding virtual function overrides. Using C++ standard. See http://msdn.microsoft.com/en-us/library/bb384874(v=vs.90).aspx --- cockatrice/src/decklistmodel.h | 2 +- common/decklist.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/decklistmodel.h b/cockatrice/src/decklistmodel.h index 2e2c570a..e03a9ff2 100644 --- a/cockatrice/src/decklistmodel.h +++ b/cockatrice/src/decklistmodel.h @@ -19,7 +19,7 @@ public: int getNumber() const { return dataNode->getNumber(); } void setNumber(int _number) { dataNode->setNumber(_number); } float getPrice() const { return dataNode->getPrice(); } - void setPrice(float _price) { dataNode->setPrice(_price); } + void setPrice(const float _price) { dataNode->setPrice(_price); } QString getName() const { return dataNode->getName(); } void setName(const QString &_name) { dataNode->setName(_name); } DecklistCardNode *getDataNode() const { return dataNode; } diff --git a/common/decklist.h b/common/decklist.h index c5535c2d..2e8f4a9b 100644 --- a/common/decklist.h +++ b/common/decklist.h @@ -83,7 +83,7 @@ public: virtual QString getName() const = 0; virtual void setName(const QString &_name) = 0; virtual float getPrice() const = 0; - virtual void setPrice(float _price) = 0; + virtual void setPrice(const float _price) = 0; float getTotalPrice() const { return getNumber() * getPrice(); } int height() const { return 0; } bool compare(AbstractDecklistNode *other) const;