mirror of
https://github.com/nzbget/nzbget.git
synced 2026-05-19 10:34:28 -04:00
#256: compatibility with gcc 4.8
This commit is contained in:
@@ -38,7 +38,7 @@ public:
|
||||
GroupSorter(NzbList* nzbList, QueueEditor::ItemList* sortItemList) :
|
||||
m_nzbList(nzbList), m_sortItemList(sortItemList) {}
|
||||
bool Execute(const char* sort);
|
||||
bool operator()(std::unique_ptr<NzbInfo>& refNzbInfo1, std::unique_ptr<NzbInfo>& refNzbInfo2) const;
|
||||
bool operator()(const std::unique_ptr<NzbInfo>& refNzbInfo1, const std::unique_ptr<NzbInfo>& refNzbInfo2) const;
|
||||
|
||||
private:
|
||||
enum ESortCriteria
|
||||
@@ -129,7 +129,7 @@ bool GroupSorter::Execute(const char* sort)
|
||||
std::sort(m_nzbList->begin(), m_nzbList->end(), *this);
|
||||
|
||||
if (origSortOrder == soAuto &&
|
||||
std::equal(tempList.begin(), tempList.end(), m_nzbList->begin(), m_nzbList->end(),
|
||||
std::equal(tempList.begin(), tempList.end(), m_nzbList->begin(),
|
||||
[](NzbInfo* nzbInfo1, std::unique_ptr<NzbInfo>& nzbInfo2)
|
||||
{
|
||||
return nzbInfo1 == nzbInfo2.get();
|
||||
@@ -142,7 +142,7 @@ bool GroupSorter::Execute(const char* sort)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GroupSorter::operator()(std::unique_ptr<NzbInfo>& refNzbInfo1, std::unique_ptr<NzbInfo>& refNzbInfo2) const
|
||||
bool GroupSorter::operator()(const std::unique_ptr<NzbInfo>& refNzbInfo1, const std::unique_ptr<NzbInfo>& refNzbInfo2) const
|
||||
{
|
||||
NzbInfo* nzbInfo1 = refNzbInfo1.get();
|
||||
NzbInfo* nzbInfo2 = refNzbInfo2.get();
|
||||
|
||||
Reference in New Issue
Block a user