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:
1 parent
1404a28ffa
commit
7999cacf1c
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user