mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-29 00:27:27 -04:00
Fix compiler warnings
This commit is contained in:
parent
dc9ba74bdd
commit
7d1efa7ed9
2 changed files with 5 additions and 3 deletions
|
@ -402,12 +402,12 @@ struct TurtleFileInfoV2 : RsSerializable
|
||||||
{
|
{
|
||||||
TurtleFileInfoV2() : fSize(0), fWeight(0) {}
|
TurtleFileInfoV2() : fSize(0), fWeight(0) {}
|
||||||
|
|
||||||
TurtleFileInfoV2(const TurtleFileInfo& oldInfo) :
|
explicit TurtleFileInfoV2(const TurtleFileInfo& oldInfo) :
|
||||||
fSize(oldInfo.size), fHash(oldInfo.hash), fName(oldInfo.name),
|
fSize(oldInfo.size), fHash(oldInfo.hash), fName(oldInfo.name),
|
||||||
fWeight(0) {}
|
fWeight(0) {}
|
||||||
|
|
||||||
#ifdef RS_DEEP_FILES_INDEX
|
#ifdef RS_DEEP_FILES_INDEX
|
||||||
TurtleFileInfoV2(const DeepFilesSearchResult& dRes);
|
explicit TurtleFileInfoV2(const DeepFilesSearchResult& dRes);
|
||||||
#endif // def RS_DEEP_FILES_INDEX
|
#endif // def RS_DEEP_FILES_INDEX
|
||||||
|
|
||||||
uint64_t fSize; /// File size
|
uint64_t fSize; /// File size
|
||||||
|
@ -746,6 +746,7 @@ public:
|
||||||
* interaction with Qt. As soon as you can, you should prefer to use the
|
* interaction with Qt. As soon as you can, you should prefer to use the
|
||||||
* version of this methodn which take `std::uintptr_t handle` as paramether.
|
* version of this methodn which take `std::uintptr_t handle` as paramether.
|
||||||
*/
|
*/
|
||||||
|
RS_DEPRECATED_FOR(requestDirDetails)
|
||||||
virtual int RequestDirDetails(
|
virtual int RequestDirDetails(
|
||||||
void* handle, DirDetails& details, FileSearchFlags flags ) = 0;
|
void* handle, DirDetails& details, FileSearchFlags flags ) = 0;
|
||||||
|
|
||||||
|
|
|
@ -201,7 +201,8 @@ struct FileInfo : RsSerializable
|
||||||
std::string path;
|
std::string path;
|
||||||
std::string fname;
|
std::string fname;
|
||||||
RsFileHash hash;
|
RsFileHash hash;
|
||||||
std::string ext;
|
|
||||||
|
RS_DEPRECATED std::string ext; /// @deprecated unused
|
||||||
|
|
||||||
uint64_t size;
|
uint64_t size;
|
||||||
uint64_t avail; /// how much we have
|
uint64_t avail; /// how much we have
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue