Re: deprecated fix patch files

warning: ‘typename Container::const_iterator qUpperBound(const Container&, const T&) [with Container = QList<double>; T = double; typename Container::const_iterator = QList<double>::const_iterator]’ is deprecated: Use std::upper_bound [-Wdeprecated-declarations]

-3 issues Qt -> C++ (should be ok, no version differences)

Post's attachments

Attachment icon 0001-fix-deprecated-warning-qUpperBound.patch 1.11 kb, 240 downloads since 2020-06-07 

27 (edited by De-Backer 2020-06-07 10:23:11)

Re: deprecated fix patch files

attempt 2 for deprecated warning QList::swap(int i, int j)

scorpio810 wrote:

I had to revert it
https://git.tuxfamily.org/qet/qet.git/c … e91882a445

Edit : ok I understood, I use Qt version 5.12.5 and this function was introduced in Qt 5.13.

*fix deprecated warning QList::swap(int i, int j)

Post's attachments

Attachment icon 0001-fix-deprecated-warning-QList-swap-attempt-2.patch 1.4 kb, 217 downloads since 2020-06-07 

Re: deprecated fix patch files

* fix_deprecated_QModelIndex
warning: ‘QModelIndex QModelIndex::child(int, int) const’ is deprecated: Use QAbstractItemModel::index [-Wdeprecated-declarations]

-11 issues

Post's attachments

Attachment icon 0001-fix-deprecated-warning-QModelIndex-child.patch 3.97 kb, 237 downloads since 2020-06-07 

Re: deprecated fix patch files

scorpio810 wrote:

I tried "0001-fix-deprecated-Wdeprecated-copy.patch" is reduce warnings 50 to 6, but I don't know if I can push it?
First patch in attached patch reduce warnings 50 -> ~20.

i think this is the answer, use default default constructor (does only shallow copy).

Post's attachments

Attachment icon 0001-remove-user-defined-copy-constructor.patch 4.07 kb, 204 downloads since 2020-06-07 

Re: deprecated fix patch files

Thanks Simon.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: deprecated fix patch files

De-Backer wrote:

warning: ‘QSet<T> QList<T>::toSet() const [with T = IndependentTextItem*]’ is deprecated:
Use QSet<T>(list.begin(), list.end()) instead. [-Wdeprecated-declarations]

-5 issues  for QT 5.14

don't forget

Re: deprecated fix patch files

last patch:

QAbstractTableModel explicitly initialized in copy constructor

warning: base class ‘class QAbstractTableModel’
should be explicitly initialized in the copy constructor [-Wextra]

Post's attachments

Attachment icon 0001-QAbstractTableModel-explicitly-initialized-in-copy-c.patch 1.27 kb, 226 downloads since 2020-06-08 

Re: deprecated fix patch files

Thanks Simon.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."