made isScreen() a const method.

This commit is contained in:
crs 2002-05-31 18:08:08 +00:00
parent 942e57fc8d
commit 71c374b6cd
2 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ CConfig::const_iterator CConfig::end() const
return const_iterator(m_map.end()); 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); return (m_map.count(name) > 0);
} }

View File

@ -80,7 +80,7 @@ public:
const_iterator end() const; const_iterator end() const;
// returns true iff name names a screen // 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 // get the neighbor in the given direction. returns the empty string
// if there is no neighbor in that direction. // if there is no neighbor in that direction.