mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 17:39:42 +00:00
Mark constant methods const
This commit is contained in:
parent
a207b5e419
commit
48726eedaa
3 changed files with 9 additions and 9 deletions
|
@ -53,14 +53,14 @@ namespace MWBase
|
|||
|
||||
virtual bool startDialogue(const MWWorld::Ptr& actor, ResponseCallback* callback) = 0;
|
||||
|
||||
virtual bool inJournal(const std::string& topicId, const std::string& infoId) = 0;
|
||||
virtual bool inJournal(const std::string& topicId, const std::string& infoId) const = 0;
|
||||
|
||||
virtual void addTopic(std::string_view topic) = 0;
|
||||
|
||||
virtual void addChoice(std::string_view text, int choice) = 0;
|
||||
virtual const std::vector<std::pair<std::string, int>>& getChoices() = 0;
|
||||
virtual const std::vector<std::pair<std::string, int>>& getChoices() const = 0;
|
||||
|
||||
virtual bool isGoodbye() = 0;
|
||||
virtual bool isGoodbye() const = 0;
|
||||
|
||||
virtual void goodbye() = 0;
|
||||
|
||||
|
|
|
@ -260,7 +260,7 @@ namespace MWDialogue
|
|||
}
|
||||
}
|
||||
|
||||
bool DialogueManager::inJournal(const std::string& topicId, const std::string& infoId)
|
||||
bool DialogueManager::inJournal(const std::string& topicId, const std::string& infoId) const
|
||||
{
|
||||
const MWDialogue::Topic* topicHistory = nullptr;
|
||||
MWBase::Journal* journal = MWBase::Environment::get().getJournal();
|
||||
|
@ -528,12 +528,12 @@ namespace MWDialogue
|
|||
mChoices.emplace_back(text, choice);
|
||||
}
|
||||
|
||||
const std::vector<std::pair<std::string, int>>& DialogueManager::getChoices()
|
||||
const std::vector<std::pair<std::string, int>>& DialogueManager::getChoices() const
|
||||
{
|
||||
return mChoices;
|
||||
}
|
||||
|
||||
bool DialogueManager::isGoodbye()
|
||||
bool DialogueManager::isGoodbye() const
|
||||
{
|
||||
return mGoodbye;
|
||||
}
|
||||
|
|
|
@ -84,14 +84,14 @@ namespace MWDialogue
|
|||
std::list<std::string> getAvailableTopics() override;
|
||||
int getTopicFlag(const std::string& topicId) const override;
|
||||
|
||||
bool inJournal(const std::string& topicId, const std::string& infoId) override;
|
||||
bool inJournal(const std::string& topicId, const std::string& infoId) const override;
|
||||
|
||||
void addTopic(std::string_view topic) override;
|
||||
|
||||
void addChoice(std::string_view text, int choice) override;
|
||||
const std::vector<std::pair<std::string, int>>& getChoices() override;
|
||||
const std::vector<std::pair<std::string, int>>& getChoices() const override;
|
||||
|
||||
bool isGoodbye() override;
|
||||
bool isGoodbye() const override;
|
||||
|
||||
void goodbye() override;
|
||||
|
||||
|
|
Loading…
Reference in a new issue