Make CString::strnchr() private

No idea what this function actually does, but it's only used internally in
CString. This also removes a bogus "inline".


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2110 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-08-23 11:43:19 +00:00
parent 2becac12ba
commit 8938fd719d
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ CString::CString(unsigned long long i) : string() { stringstream s; s << i; *thi
CString::CString(double i, int precision) : string() { stringstream s; s.precision(precision); s << std::fixed << i; *this = s.str(); }
CString::CString(float i, int precision) : string() { stringstream s; s.precision(precision); s << std::fixed << i; *this = s.str(); }
inline unsigned char* CString::strnchr(const unsigned char* src, unsigned char c, unsigned int iMaxBytes, unsigned char* pFill, unsigned int* piCount) const {
unsigned char* CString::strnchr(const unsigned char* src, unsigned char c, unsigned int iMaxBytes, unsigned char* pFill, unsigned int* piCount) const {
for (unsigned int a = 0; a < iMaxBytes && *src; a++, src++) {
if (pFill) {
pFill[a] = *src;