Browse Source

Merge pull request #13696 from Chocobo1/warnings

Suppress compiler warnings
adaptive-webui-19844
Mike Tzou 4 years ago committed by GitHub
parent
commit
2a2a80b0bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/base/bittorrent/nativetorrentextension.cpp
  2. 2
      src/gui/torrentcontentmodelitem.h

6
src/base/bittorrent/nativetorrentextension.cpp

@ -32,12 +32,6 @@
namespace namespace
{ {
bool isPaused(const lt::torrent_status &torrentStatus)
{
return ((torrentStatus.flags & lt::torrent_flags::paused)
&& !(torrentStatus.flags & lt::torrent_flags::auto_managed));
}
bool isAutoManaged(const lt::torrent_status &torrentStatus) bool isAutoManaged(const lt::torrent_status &torrentStatus)
{ {
return static_cast<bool>(torrentStatus.flags & lt::torrent_flags::auto_managed); return static_cast<bool>(torrentStatus.flags & lt::torrent_flags::auto_managed);

2
src/gui/torrentcontentmodelitem.h

@ -40,7 +40,7 @@ class TorrentContentModelFolder;
class TorrentContentModelItem class TorrentContentModelItem
{ {
Q_DECLARE_TR_FUNCTIONS(TorrentContentModelItem); Q_DECLARE_TR_FUNCTIONS(TorrentContentModelItem)
public: public:
enum TreeItemColumns enum TreeItemColumns

Loading…
Cancel
Save