From 71c374b6cd97d8180498c0722c9410dc159b912c Mon Sep 17 00:00:00 2001 From: crs Date: Fri, 31 May 2002 18:08:08 +0000 Subject: [PATCH] made isScreen() a const method. --- server/CConfig.cpp | 2 +- server/CConfig.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/CConfig.cpp b/server/CConfig.cpp index a09e4c7f..f1615622 100644 --- a/server/CConfig.cpp +++ b/server/CConfig.cpp @@ -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); } diff --git a/server/CConfig.h b/server/CConfig.h index d1d04500..88f58a76 100644 --- a/server/CConfig.h +++ b/server/CConfig.h @@ -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.