mirror of
https://github.com/znc/znc.git
synced 2026-08-12 03:42:48 +02:00
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:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user