D24349: More fixes to compile without implicit conversion from ASCII/ByteArray

2019-11-27 Thread Ahmad Samir
This revision was automatically updated to reflect the committed changes. ahmadsamir marked an inline comment as done. Closed by commit R241:54ccb1ac4883: More fixes to compile without implicit conversion from ASCII/ByteArray (authored by ahmadsamir). REPOSITORY R241 KIO CHANGES SINCE LAST UPD

D24349: More fixes to compile without implicit conversion from ASCII/ByteArray

2019-11-27 Thread David Faure
dfaure accepted this revision. This revision is now accepted and ready to land. REPOSITORY R241 KIO BRANCH arcpatch-D24349 (branched from master) REVISION DETAIL https://phabricator.kde.org/D24349 To: ahmadsamir, dfaure, #frameworks Cc: yurchor, kde-frameworks-devel, LeGast00n, GB_2, mich

D24349: More fixes to compile without implicit conversion from ASCII/ByteArray

2019-11-27 Thread Ahmad Samir
ahmadsamir updated this revision to Diff 70407. ahmadsamir added a comment. Per dfaure's recommendation, change createSystemBookmark 2nd and 3rd params to take a const char * (since this is the translation context which will be dropped) and a QByteArray, respectively. REPOSITORY R241 KIO

D24349: More fixes to compile without implicit conversion from ASCII/ByteArray

2019-11-26 Thread David Faure
dfaure added inline comments. INLINE COMMENTS > kfileplacesmodel.cpp:280 > KFilePlacesItem::createSystemBookmark(d->bookmarkManager, > - I18NC_NOOP("KFile System > Bookmarks", "Home"), > + > I18NC

D24349: More fixes to compile without implicit conversion from ASCII/ByteArray

2019-11-26 Thread Ahmad Samir
ahmadsamir added inline comments. INLINE COMMENTS > yurchor wrote in kfileplacesmodel.cpp:275 > This does not work. Our translation system cannot extract from something like > > I18NC_NOOP(fsBookmarks, QStringLiteral("Desktop")) > > all the strings below with I18NC_NOOP should be left as is. Th

D24349: More fixes to compile without implicit conversion from ASCII/ByteArray

2019-11-26 Thread Ahmad Samir
ahmadsamir updated this revision to Diff 70379. ahmadsamir marked 5 inline comments as done. ahmadsamir added a comment. - Keep I18NC_NOOP working - QLatin1String where appropriate - Rename mProtocolToStr() to protocolName(), and make it private (only used in slavebase) REPOSITORY R241

D24349: More fixes to compile without implicit conversion from ASCII/ByteArray

2019-11-26 Thread David Faure
dfaure added inline comments. INLINE COMMENTS > yurchor wrote in kfileplacesmodel.cpp:275 > This does not work. Our translation system cannot extract from something like > > I18NC_NOOP(fsBookmarks, QStringLiteral("Desktop")) > > all the strings below with I18NC_NOOP should be left as is. Thanks

D24349: More fixes to compile without implicit conversion from ASCII/ByteArray

2019-11-26 Thread Yuri Chornoivan
yurchor added inline comments. INLINE COMMENTS > dfaure wrote in kfileplacesmodel.cpp:275 > This is more commonly written as "static const" This does not work. Our translation system cannot extract from something like I18NC_NOOP(fsBookmarks, QStringLiteral("Desktop")) all the strings below wit

D24349: More fixes to compile without implicit conversion from ASCII/ByteArray

2019-11-26 Thread David Faure
dfaure requested changes to this revision. dfaure added inline comments. This revision now requires changes to proceed. INLINE COMMENTS > ahmadsamir wrote in slavebase.h:979 > A B C, nothing changed inside make it const, D E F. Yep ;) Hmm, also it's in the middle of member variables, better not

D24349: More fixes to compile without implicit conversion from ASCII/ByteArray

2019-11-26 Thread Ahmad Samir
ahmadsamir added a comment. Ping. (I want to get this committed to close the gates before any more implicit conversions sneak in :)). REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D24349 To: ahmadsamir, dfaure, #frameworks Cc: kde-frameworks-devel, LeGast00n, GB_2, mic

D24349: More fixes to compile without implicit conversion from ASCII/ByteArray

2019-11-24 Thread Ahmad Samir
ahmadsamir updated this revision to Diff 70271. ahmadsamir marked 8 inline comments as done. ahmadsamir retitled this revision from "More (and last) fixes to compile without implicit conversion from ASCII/ByteArray" to "More fixes to compile without implicit conversion from ASCII/ByteArray". ahma

D24349: More fixes to compile without implicit conversion from ASCII/ByteArray

2019-11-24 Thread Ahmad Samir
ahmadsamir added inline comments. INLINE COMMENTS > dfaure wrote in slavebase.h:979 > This method should be const A B C, nothing changed inside make it const, D E F. > dfaure wrote in ftp.cpp:1232 > Should this be remoteEncoding()->decode(...) given that the method will then > use q->remoteEnc