[KPhotoAlbum] Tiny patch: Some missing includes

Henner Zeller h.zeller at acm.org
Sun Nov 30 01:46:02 GMT 2014


On 29 November 2014 at 03:23, Tobias Leupold <tobias.leupold at web.de> wrote:

> Hi :-)
>
> I just had a look at it (not that I ever touched the respective code ...).
> std::tuple is actually used in
> AnnotationDialog::Dialog::selectionForMultiSelect, as well as std::tie.
> Both
> seem to be part of the Boost package (at least here on current stable
> Gentoo).
> std::tuple looks like a QPair counterpart (not sure about the std::tie
> thing,
> as I'm not really a C++ guru ;-)
>
> Why don't we use Qt here (instead of using "external" libraries)? I didn't
> see
> some std::* stuff elsewhere, I'm just wondering if we could e. g. use
>
>         QPair<QStringList, QStringList>(itemsOnAllImages,
> itemsPartiallyOn);
>
> instead of
>
>         std::make_tuple( itemsOnAllImages,  itemsPartiallyOn );
>
> of course with itemsOnAllImages and itemsPartiallyOn declared as
> QStringList
> before and so on.
>
> For the <algorithm.h> include: Where is this used? I didn't find it!
>

<algorithm> is needed for std::all_of()


>
> Cheers, Tobias
>
> Am Freitag 28 November 2014, 23:18:47 schrieb Henner Zeller:
> > Hi,
> > While compiling kphotoalbum today (on wheezy), I had to add some
> includes -
> > functions used in ImagePreview.cpp and Dialog.cpp but whose headers were
> > missing.
> > Patch attached.
> >
> > -h
>
> _______________________________________________
> KPhotoAlbum mailing list
> KPhotoAlbum at mail.kdab.com
> https://mail.kdab.com/mailman/listinfo/kphotoalbum
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kphotoalbum/attachments/20141129/ff3533b5/attachment.htm>


More information about the Kphotoalbum mailing list