mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-09 07:22:21 +08:00
made isScreen() a const method.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user