1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/graphics/inkscape/files/patch-src_remove-last.h
Koop Mast 4466fdd01b Fix the build with clang and with libc++ [1]
Switch to new lib_depend syntax, stageify, USES=desktop-file-utils.
Quiet warning spam when building with clang.
Cleanup obsolete sed lines, rename patches with obsolete names.

Obtained from:	inkscape launchpad bug 1232474 and 0.48.x stable branch [1]
2013-10-18 14:37:58 +00:00

16 lines
470 B
C++

--- src/remove-last.h.orig 2011-07-08 20:25:09.468790000 +0200
+++ src/remove-last.h 2013-10-18 16:34:12.000000000 +0200
@@ -10,10 +10,9 @@
{
using std::vector;
- typename vector<T>::reverse_iterator i(find(seq.rbegin(), seq.rend(), elem));
+ typename vector<T>::reverse_iterator i(std::find(seq.rbegin(), seq.rend(), elem));
g_assert( i != seq.rend() );
- typename vector<T>::iterator ii(&*i);
- seq.erase(ii);
+ seq.erase(i.base());
}