Fix compiler warnings

This commit is contained in:
Gioacchino Mazzurco 2020-04-02 23:58:09 +02:00
parent dc9ba74bdd
commit 7d1efa7ed9
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051
2 changed files with 5 additions and 3 deletions

View File

@ -402,12 +402,12 @@ struct TurtleFileInfoV2 : RsSerializable
{
TurtleFileInfoV2() : fSize(0), fWeight(0) {}
TurtleFileInfoV2(const TurtleFileInfo& oldInfo) :
explicit TurtleFileInfoV2(const TurtleFileInfo& oldInfo) :
fSize(oldInfo.size), fHash(oldInfo.hash), fName(oldInfo.name),
fWeight(0) {}
#ifdef RS_DEEP_FILES_INDEX
TurtleFileInfoV2(const DeepFilesSearchResult& dRes);
explicit TurtleFileInfoV2(const DeepFilesSearchResult& dRes);
#endif // def RS_DEEP_FILES_INDEX
uint64_t fSize; /// File size
@ -746,6 +746,7 @@ public:
* 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.
*/
RS_DEPRECATED_FOR(requestDirDetails)
virtual int RequestDirDetails(
void* handle, DirDetails& details, FileSearchFlags flags ) = 0;

View File

@ -201,7 +201,8 @@ struct FileInfo : RsSerializable
std::string path;
std::string fname;
RsFileHash hash;
std::string ext;
RS_DEPRECATED std::string ext; /// @deprecated unused
uint64_t size;
uint64_t avail; /// how much we have