mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-28 08:54:13 -04:00
Fix CppCheck in ftcontroller.cc
/libretroshare/src/ft/ftcontroller.cc:91: warning: Cppcheck(passedByValue): Function parameter 'fname' should be passed by reference. /libretroshare/src/ft/ftcontroller.cc:92: warning: Cppcheck(passedByValue): Function parameter 'tmppath' should be passed by reference. /libretroshare/src/ft/ftcontroller.cc:92: warning: Cppcheck(passedByValue): Function parameter 'dest' should be passed by reference. /libretroshare/src/ft/ftcontroller.cc:1482: warning: Cppcheck(stlIfStrFind): Inefficient usage of string::find() in condition; string::compare() would be faster. /libretroshare/src/ft/ftcontroller.cc:1491: warning: Cppcheck(stlIfStrFind): Inefficient usage of string::find() in condition; string::compare() would be faster.
This commit is contained in:
parent
676c070152
commit
dca33daae8
2 changed files with 12 additions and 15 deletions
|
@ -73,9 +73,9 @@ class ftFileControl
|
|||
};
|
||||
|
||||
ftFileControl();
|
||||
ftFileControl(std::string fname, std::string tmppath, std::string dest,
|
||||
uint64_t size, const RsFileHash& hash, TransferRequestFlags flags,
|
||||
ftFileCreator *fc, ftTransferModule *tm);
|
||||
ftFileControl( const std::string& fname, const std::string& tmppath, const std::string& dest
|
||||
, uint64_t size, const RsFileHash& hash, TransferRequestFlags flags
|
||||
, ftFileCreator *fc, ftTransferModule *tm);
|
||||
|
||||
std::string mName;
|
||||
std::string mCurrentPath; /* current full path (including name) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue