> On July 23, 2013, 11:19 a.m., David Faure wrote: > > staging/kio/src/core/authinfo.cpp, line 324 > > <http://git.reviewboard.kde.org/r/111636/diff/1/?file=172718#file172718line324> > > > > For some reason Qt has a Q_FOREVER() macro for this. I admit that I'm > > not sure what it difference it makes compared to while(true) though.... > > Alex Merry wrote: > #define Q_FOREVER for(;;) > > I'm going to go with "none whatsoever". > > David Gil Oliva wrote: > Alex: I'm sorry, I don't understand what you mean... ?:-/
dfaure was wondering whether "Q_FOREVER" was any better than "while (true)"; given "Q_FOREVER" is just a #define for "for(;;)" (which does exactly the same as "while (true)"), there's no real difference (with any sane compiler), only an aesthetic one. Personally, I think "while (true)" is the best one; it's completely obvious to anyone who knows C or C++ what it does. - Alex ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/111636/#review36282 ----------------------------------------------------------- On July 21, 2013, 11:41 p.m., David Gil Oliva wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://git.reviewboard.kde.org/r/111636/ > ----------------------------------------------------------- > > (Updated July 21, 2013, 11:41 p.m.) > > > Review request for KDE Frameworks. > > > Description > ------- > > Port away from kde_file.h in AuthInfo (KIO) > > I have tried not to touch much code, but I finally rewrote some parts to make > them easier to understand. > > > Diffs > ----- > > staging/kio/src/core/authinfo.h d6415b2f2e9ccec7c3e046f569fb44dbbc879d6b > staging/kio/src/core/authinfo.cpp 65ebacf84e989f19f1b896c596a6b24185c67447 > > Diff: http://git.reviewboard.kde.org/r/111636/diff/ > > > Testing > ------- > > It builds. I have tested the part of the code not related to loginMap with a > little program and .netrc sample files, to check whether it correctly parses > the information. > > > Thanks, > > David Gil Oliva > >
_______________________________________________ Kde-frameworks-devel mailing list Kde-frameworks-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-frameworks-devel