mirror of https://github.com/debauchee/barrier.git
made isScreen() a const method.
This commit is contained in:
parent
942e57fc8d
commit
71c374b6cd
|
@ -136,7 +136,7 @@ CConfig::const_iterator CConfig::end() const
|
|||
return const_iterator(m_map.end());
|
||||
}
|
||||
|
||||
bool CConfig::isScreen(const CString& name)
|
||||
bool CConfig::isScreen(const CString& name) const
|
||||
{
|
||||
return (m_map.count(name) > 0);
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@ public:
|
|||
const_iterator end() const;
|
||||
|
||||
// returns true iff name names a screen
|
||||
bool isScreen(const CString& name);
|
||||
bool isScreen(const CString& name) const;
|
||||
|
||||
// get the neighbor in the given direction. returns the empty string
|
||||
// if there is no neighbor in that direction.
|
||||
|
|
Loading…
Reference in New Issue