fix build for qt 4.8.2 update: use stl's swap instead of rolling our own
This commit is contained in:
parent
e75e38fde3
commit
7ed01ed174
@ -1,11 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.14 2011/12/03 18:35:11 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.15 2012/06/13 09:14:53 espie Exp $
|
||||
|
||||
COMMENT= portable DjVu viewer and browser plugin
|
||||
|
||||
DISTNAME= djview-4.8
|
||||
PKGNAME= ${DISTNAME:S/djview/djview4/}
|
||||
CATEGORIES= graphics print
|
||||
REVISION= 0
|
||||
REVISION= 1
|
||||
|
||||
HOMEPAGE= http://djvu.sourceforge.net/djview4.html
|
||||
|
||||
|
19
graphics/djview4/patches/patch-src_qdjvuwidget_cpp
Normal file
19
graphics/djview4/patches/patch-src_qdjvuwidget_cpp
Normal file
@ -0,0 +1,19 @@
|
||||
$OpenBSD: patch-src_qdjvuwidget_cpp,v 1.1 2012/06/13 09:14:53 espie Exp $
|
||||
--- src/qdjvuwidget.cpp.orig Wed Jun 13 11:08:56 2012
|
||||
+++ src/qdjvuwidget.cpp Wed Jun 13 11:09:24 2012
|
||||
@@ -152,15 +152,6 @@ all_numbers(const char *s)
|
||||
return true;
|
||||
}
|
||||
|
||||
-template<class T> static inline void
|
||||
-swap(T& x, T& y)
|
||||
-{
|
||||
- T tmp;
|
||||
- tmp = x;
|
||||
- x = y;
|
||||
- y = tmp;
|
||||
-}
|
||||
-
|
||||
template<class T> static inline int
|
||||
ksmallest(T *v, int n, int k)
|
||||
{
|
Loading…
Reference in New Issue
Block a user