Add some 'const' attributes to various functions

No real changes in here, only way more constness...


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1129 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-07-14 08:13:06 +00:00
parent 4a62fca388
commit 86924339a3
8 changed files with 27 additions and 27 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ CBufLine::CBufLine(const CString& sPre, const CString& sPost, bool bIncNick=true
CBufLine::~CBufLine() {}
void CBufLine::GetLine(const CString& sTarget, CString& sRet) {
void CBufLine::GetLine(const CString& sTarget, CString& sRet) const {
if (m_bIncNick)
sRet = m_sPre + sTarget + m_sPost;
else
@@ -54,7 +54,7 @@ int CBuffer::UpdateLine(const CString& sPre, const CString& sPost, bool bIncNick
return AddLine(sPre, sPost, bIncNick);
}
bool CBuffer::GetLine(const CString& sTarget, CString& sRet, unsigned int uIdx) {
bool CBuffer::GetLine(const CString& sTarget, CString& sRet, unsigned int uIdx) const {
if (uIdx >= size()) {
return false;
}