Avoid a CString copy in CFile::FType()

You guessed right, cppcheck ftw!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1764 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-02-18 12:49:24 +00:00
parent 1404a28ffa
commit 7999cacf1c
2 changed files with 2 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ bool CFile::IsLnk(bool bUseLstat) const { return CFile::IsLnk(m_sLongName, bUseL
bool CFile::IsSock(bool bUseLstat) const { return CFile::IsSock(m_sLongName, bUseLstat); }
// for gettin file types, using fstat instead
bool CFile::FType(const CString sFileName, EFileTypes eType, bool bUseLstat) {
bool CFile::FType(const CString& sFileName, EFileTypes eType, bool bUseLstat) {
struct stat st;
if (!bUseLstat) {