View | Details | Raw Unified | Return to bug 220975 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-4 / +14 lines)
Lines 2-9 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	abiword
4
PORTNAME=	abiword
5
PORTVERSION=	3.0.1
5
PORTVERSION=	3.0.2
6
PORTREVISION=	10
7
CATEGORIES=	editors
6
CATEGORIES=	editors
8
MASTER_SITES=	http://www.abisource.com/downloads/abiword/${PORTVERSION}/source/
7
MASTER_SITES=	http://www.abisource.com/downloads/abiword/${PORTVERSION}/source/
9
DIST_SUBDIR=	AbiWord
8
DIST_SUBDIR=	AbiWord
Lines 19-31 Link Here
19
		libpng.so:graphics/png \
18
		libpng.so:graphics/png \
20
		libwv.so:textproc/wv \
19
		libwv.so:textproc/wv \
21
		libfribidi.so:converters/fribidi \
20
		libfribidi.so:converters/fribidi \
22
		libgoffice-0.10.so:devel/goffice010
21
		libgoffice-0.10.so:devel/goffice010 \
22
		libdbus-1.so:devel/dbus \
23
		libgpg-error.so:security/libgpg-error \
24
		libraptor2.so:textproc/raptor2 \
25
		librasqal.so:textproc/rasqal \
26
		libfontconfig.so:x11-fonts/fontconfig \
27
		libicalss.so:devel/libical \
28
		libfreetype.so:print/freetype2 \
29
		librdf.so:textproc/redland \
30
		libwmf.so:graphics/libwmf
23
RUN_DEPENDS=	${LOCALBASE}/share/fonts/dejavu/DejaVuSerif.ttf:x11-fonts/dejavu
31
RUN_DEPENDS=	${LOCALBASE}/share/fonts/dejavu/DejaVuSerif.ttf:x11-fonts/dejavu
24
32
25
USES=		desktop-file-utils gmake iconv jpeg libtool pathfix pkgconfig
33
USES=		desktop-file-utils gmake iconv jpeg libtool pathfix pkgconfig
26
USE_GNOME=	libxml2 gtk30 librsvg2 libxslt
34
USE_GNOME=	cairo libxml2 gtk30 librsvg2 libxslt
35
USE_XORG+=	x11
27
GNU_CONFIGURE=	yes
36
GNU_CONFIGURE=	yes
28
CPPFLAGS+=	-I${LOCALBASE}/include
37
CPPFLAGS+=	-I${LOCALBASE}/include
38
CXXFLAGS+=	-std=c++98
29
LDFLAGS+=	-L${LOCALBASE}/lib
39
LDFLAGS+=	-L${LOCALBASE}/lib
30
CONFIGURE_ARGS=	--without-gnomevfs --enable-plugins="${ABIWORD_PLUGINS}" \
40
CONFIGURE_ARGS=	--without-gnomevfs --enable-plugins="${ABIWORD_PLUGINS}" \
31
		--enable-shared="yes" --enable-static="no"
41
		--enable-shared="yes" --enable-static="no"
(-)distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (AbiWord/abiword-3.0.1.tar.gz) = e094f6fbf0afc5c5538b4894888e7c346f8ee8f49c9d24821dd696d0734865c6
1
TIMESTAMP = 1518488853
2
SIZE (AbiWord/abiword-3.0.1.tar.gz) = 11144990
2
SHA256 (AbiWord/abiword-3.0.2.tar.gz) = afbfd458fd02989d8b0c6362ba8a4c14686d89666f54cfdb5501bd2090cf3522
3
SIZE (AbiWord/abiword-3.0.2.tar.gz) = 11154333
(-)files/_patch-c++11 (+68 lines)
Line 0 Link Here
1
--- plugins/collab/backends/service/xp/RealmProtocol.cpp.orig	2009-05-27 05:41:59 UTC
2
+++ plugins/collab/backends/service/xp/RealmProtocol.cpp
3
@@ -6,8 +6,8 @@ namespace protocolv1 {
4
 
5
 #define MAX_PACKET_DATA_SIZE 64*1024*1024
6
 		
7
-#define RPV1_PACKET_NONEXISTENT -2
8
-#define RPV1_PACKET_VARIABLE -1
9
+#define RPV1_PACKET_NONEXISTENT uint32_t(-2)
10
+#define RPV1_PACKET_VARIABLE uint32_t(-1)
11
 	
12
 static uint32_t body_size[6] = {
13
 	RPV1_PACKET_NONEXISTENT, /* 0: reserved */
14
--- plugins/collab/backends/service/xp/soa_soup.cpp.orig	2009-09-29 13:58:11 UTC
15
+++ plugins/collab/backends/service/xp/soa_soup.cpp
16
@@ -163,7 +163,7 @@ namespace soup_soa {
17
 	
18
 	static bool _invoke(const std::string& /*url*/, const soa::method_invocation& /*mi*/, SoaSoupSession& sess, std::string& result) {
19
 		if (!sess.m_session || !sess.m_msg )
20
-			return soa::GenericPtr();
21
+			return false;
22
 
23
 		guint status = soup_session_send_message (sess.m_session, sess.m_msg);
24
 		if (!(SOUP_STATUS_IS_SUCCESSFUL (status) ||
25
--- plugins/latex/xp/ie_exp_LaTeX.cpp.orig	2013-04-07 13:53:03 UTC
26
+++ plugins/latex/xp/ie_exp_LaTeX.cpp
27
@@ -1329,7 +1329,7 @@ void s_LaTeX_Listener::_outputData(const UT_UCSChar * 
28
 	m_pie->write(sBuf.c_str(),sBuf.size());
29
 }
30
 
31
-#define SUB(a,who) case a: subst = "\\(\\"who"\\)"; return true;
32
+#define SUB(a,who) case a: subst = "\\(\\" who"\\)"; return true;
33
 #define SUBd(a,who) case a: subst = who; return true;
34
 static bool _convertLettersToSymbols(char c, const char *& subst)
35
 {
36
--- plugins/xslfo/xp/ie_exp_XSL-FO.cpp.orig	2013-04-07 13:53:03 UTC
37
+++ plugins/xslfo/xp/ie_exp_XSL-FO.cpp
38
@@ -1451,7 +1451,7 @@ void s_XSL_FO_Listener::_openSection(PT_AttrPropIndex 
39
 	{ \
40
 		UT_UTF8String esc = szValue; \
41
 		esc.escapeXML(); \
42
-		buf += " "x"=\""; \
43
+		buf += " " x"=\""; \
44
 		buf += esc.utf8_str(); \
45
 		buf += "\""; \
46
 	}
47
--- src/af/xap/xp/xap_Dialog.cpp.orig	2013-04-07 13:53:03 UTC
48
+++ src/af/xap/xp/xap_Dialog.cpp
49
@@ -267,7 +267,7 @@ XAP_Dialog_Modeless::BuildWindowName(char * pWindowNam
50
 // This function constructs and returns the window name of a modeless dialog by
51
 // concatenating the active frame with the dialog name
52
 
53
-	*pWindowName = (char) NULL;
54
+	*pWindowName = '\0';
55
 	UT_UTF8String wn = UT_UTF8String(pDialogName);
56
 
57
 	XAP_Frame* pFrame = getActiveFrame();
58
--- src/wp/ap/gtk/ap_UnixApp.cpp.orig	2013-04-07 13:53:03 UTC
59
+++ src/wp/ap/gtk/ap_UnixApp.cpp
60
@@ -863,7 +863,7 @@ static bool is_so (const char *file) {
61
 	if (len < (strlen(G_MODULE_SUFFIX) + 2)) // this is ".so" and at least one char for the filename
62
 		return false;
63
 	const char *suffix = file+(len-3);
64
-	if(0 == strcmp (suffix, "."G_MODULE_SUFFIX))
65
+	if(0 == strcmp (suffix, "." G_MODULE_SUFFIX))
66
 		return true;
67
 	return false;
68
 }
(-)files/patch-c++11 (-100 lines)
Lines 1-100 Link Here
1
xap_Dialog.cpp:270:17: error: cast from pointer to smaller type 'char' loses information
2
        *pWindowName = (char) NULL;
3
                       ^~~~~~~~~~~
4
ap_UnixApp.cpp:866:29: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
5
        if(0 == strcmp (suffix, "."G_MODULE_SUFFIX))
6
                                   ^
7
ie_exp_XSL-FO.cpp:1454:13: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
8
                buf += " "x"=\""; \
9
                          ^
10
ie_exp_LaTeX.cpp:1332:43: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
11
#define SUB(a,who) case a: subst = "\\(\\"who"\\)"; return true;
12
                                          ^
13
RealmProtocol.cpp:16:2: error: constant expression evaluates to -1 which cannot be narrowed to type 'uint32_t' (aka 'unsigned int') [-Wc++11-narrowing]
14
        RPV1_PACKET_VARIABLE, /* user joined */
15
        ^~~~~~~~~~~~~~~~~~~~
16
RealmProtocol.cpp:10:30: note: expanded from macro 'RPV1_PACKET_VARIABLE'
17
#define RPV1_PACKET_VARIABLE -1
18
                             ^~
19
RealmProtocol.cpp:16:2: note: insert an explicit cast to silence this issue
20
        RPV1_PACKET_VARIABLE, /* user joined */
21
        ^~~~~~~~~~~~~~~~~~~~
22
        static_cast<uint32_t>( )
23
RealmProtocol.cpp:10:30: note: expanded from macro 'RPV1_PACKET_VARIABLE'
24
#define RPV1_PACKET_VARIABLE -1
25
                             ^~
26
soa_soup.cpp:166:11: error: no viable conversion from returned value of type 'soa::GenericPtr' (aka 'shared_ptr<soa::Generic>') to function return type 'bool'
27
                        return soa::GenericPtr();
28
                               ^~~~~~~~~~~~~~~~~
29
30
https://github.com/AbiWord/abiword/commit/a83e6f50dbd5
31
https://github.com/AbiWord/abiword/commit/5623a94c756c
32
33
--- plugins/collab/backends/service/xp/RealmProtocol.cpp.orig	2009-05-27 05:41:59 UTC
34
+++ plugins/collab/backends/service/xp/RealmProtocol.cpp
35
@@ -6,8 +6,8 @@ namespace protocolv1 {
36
 
37
 #define MAX_PACKET_DATA_SIZE 64*1024*1024
38
 		
39
-#define RPV1_PACKET_NONEXISTENT -2
40
-#define RPV1_PACKET_VARIABLE -1
41
+#define RPV1_PACKET_NONEXISTENT uint32_t(-2)
42
+#define RPV1_PACKET_VARIABLE uint32_t(-1)
43
 	
44
 static uint32_t body_size[6] = {
45
 	RPV1_PACKET_NONEXISTENT, /* 0: reserved */
46
--- plugins/collab/backends/service/xp/soa_soup.cpp.orig	2009-09-29 13:58:11 UTC
47
+++ plugins/collab/backends/service/xp/soa_soup.cpp
48
@@ -163,7 +163,7 @@ namespace soup_soa {
49
 	
50
 	static bool _invoke(const std::string& /*url*/, const soa::method_invocation& /*mi*/, SoaSoupSession& sess, std::string& result) {
51
 		if (!sess.m_session || !sess.m_msg )
52
-			return soa::GenericPtr();
53
+			return false;
54
 
55
 		guint status = soup_session_send_message (sess.m_session, sess.m_msg);
56
 		if (!(SOUP_STATUS_IS_SUCCESSFUL (status) ||
57
--- plugins/latex/xp/ie_exp_LaTeX.cpp.orig	2013-04-07 13:53:03 UTC
58
+++ plugins/latex/xp/ie_exp_LaTeX.cpp
59
@@ -1329,7 +1329,7 @@ void s_LaTeX_Listener::_outputData(const UT_UCSChar * 
60
 	m_pie->write(sBuf.c_str(),sBuf.size());
61
 }
62
 
63
-#define SUB(a,who) case a: subst = "\\(\\"who"\\)"; return true;
64
+#define SUB(a,who) case a: subst = "\\(\\" who"\\)"; return true;
65
 #define SUBd(a,who) case a: subst = who; return true;
66
 static bool _convertLettersToSymbols(char c, const char *& subst)
67
 {
68
--- plugins/xslfo/xp/ie_exp_XSL-FO.cpp.orig	2013-04-07 13:53:03 UTC
69
+++ plugins/xslfo/xp/ie_exp_XSL-FO.cpp
70
@@ -1451,7 +1451,7 @@ void s_XSL_FO_Listener::_openSection(PT_AttrPropIndex 
71
 	{ \
72
 		UT_UTF8String esc = szValue; \
73
 		esc.escapeXML(); \
74
-		buf += " "x"=\""; \
75
+		buf += " " x"=\""; \
76
 		buf += esc.utf8_str(); \
77
 		buf += "\""; \
78
 	}
79
--- src/af/xap/xp/xap_Dialog.cpp.orig	2013-04-07 13:53:03 UTC
80
+++ src/af/xap/xp/xap_Dialog.cpp
81
@@ -267,7 +267,7 @@ XAP_Dialog_Modeless::BuildWindowName(char * pWindowNam
82
 // This function constructs and returns the window name of a modeless dialog by
83
 // concatenating the active frame with the dialog name
84
 
85
-	*pWindowName = (char) NULL;
86
+	*pWindowName = '\0';
87
 	UT_UTF8String wn = UT_UTF8String(pDialogName);
88
 
89
 	XAP_Frame* pFrame = getActiveFrame();
90
--- src/wp/ap/gtk/ap_UnixApp.cpp.orig	2013-04-07 13:53:03 UTC
91
+++ src/wp/ap/gtk/ap_UnixApp.cpp
92
@@ -863,7 +863,7 @@ static bool is_so (const char *file) {
93
 	if (len < (strlen(G_MODULE_SUFFIX) + 2)) // this is ".so" and at least one char for the filename
94
 		return false;
95
 	const char *suffix = file+(len-3);
96
-	if(0 == strcmp (suffix, "."G_MODULE_SUFFIX))
97
+	if(0 == strcmp (suffix, "." G_MODULE_SUFFIX))
98
 		return true;
99
 	return false;
100
 }
(-)files/patch-flickering (+112 lines)
Line 0 Link Here
1
--- src/af/gr/gtk/gr_UnixCairoGraphics.cpp
2
+++ src/af/gr/gtk/gr_UnixCairoGraphics.cpp
3
@@ -577,9 +577,7 @@ void GR_UnixCairoGraphics::_endPaint()
4
 
5
 void GR_UnixCairoGraphics::flush(void)
6
 {
7
-	if (m_Widget) {
8
-		gtk_widget_queue_draw(m_Widget);
9
-	}
10
+	gdk_flush();
11
 }
12
 
13
 bool GR_UnixCairoGraphics::queryProperties(GR_Graphics::Properties gp) const
14
--- src/af/gr/xp/gr_Caret.cpp
15
+++ src/af/gr/xp/gr_Caret.cpp
16
@@ -155,22 +155,17 @@ void GR_Caret::s_enable(UT_Worker * _w)
17
 {
18
 	GR_Caret * c = static_cast<GR_Caret *>(_w->getInstanceData());
19
 
20
+	c->m_enabler->stop();
21
 	c->m_worker->stop();
22
-	c->_blink(true);
23
-	if (!c->m_bCursorIsOn)
24
-		c->_blink(true); // blink again
25
-	else
26
-	{
27
-		c->_blink(true); // ?? - MARCM
28
-		c->_blink(true);
29
-	}
30
 	c->m_worker->start();
31
-	c->m_enabler->stop();
32
+	c->_blink(true);
33
 }
34
 
35
 void GR_Caret::s_blink_timeout(UT_Worker * _w)
36
 {
37
 	GR_Caret * c = static_cast<GR_Caret *>(_w->getInstanceData());
38
+
39
+	c->m_blinkTimeout->stop();
40
 	if (c->isEnabled())
41
 		c->disable();
42
 }
43
--- src/af/xap/gtk/xap_UnixFrameImpl.cpp
44
+++ src/af/xap/gtk/xap_UnixFrameImpl.cpp
45
@@ -1208,15 +1208,23 @@ gint XAP_UnixFrameImpl::_fe::delete_event(GtkWidget * w, GdkEvent * /*event*/, g
46
 }
47
 
48
 #if GTK_CHECK_VERSION(3,0,0)
49
-gint XAP_UnixFrameImpl::_fe::draw(GtkWidget * w, cairo_t * cr)
50
+gboolean XAP_UnixFrameImpl::_fe::draw(GtkWidget * w, cairo_t * cr)
51
 #else
52
 gint XAP_UnixFrameImpl::_fe::expose(GtkWidget * w, GdkEventExpose* pExposeEvent)
53
 #endif
54
 {
55
 	XAP_UnixFrameImpl * pUnixFrameImpl = static_cast<XAP_UnixFrameImpl *>(g_object_get_data(G_OBJECT(w), "user_data"));
56
 	FV_View * pView = static_cast<FV_View *>(pUnixFrameImpl->getFrame()->getCurrentView());
57
+	double x, y, width, height;
58
 #if GTK_CHECK_VERSION(3,0,0)
59
-	GdkEventExpose *pExposeEvent = reinterpret_cast<GdkEventExpose *>(gtk_get_current_event());
60
+	cairo_clip_extents (cr, &x, &y, &width, &height);
61
+	width -= x;
62
+	height -= y;
63
+#else
64
+	x = pExposeEvent->area.x;
65
+	y = pExposeEvent->area.y;
66
+	width = pExposeEvent->area.width;
67
+	height = pExposeEvent->area.height;
68
 #endif
69
 /* Jean: commenting out next lines since the zoom update code does draw only
70
  * part of what needs to be updated. */
71
@@ -1230,20 +1238,21 @@ gint XAP_UnixFrameImpl::_fe::expose(GtkWidget * w, GdkEventExpose* pExposeEvent)
72
 		UT_Rect rClip;
73
 		if (pGr->getPaintCount () > 0)
74
 			return TRUE;
75
-		xxx_UT_DEBUGMSG(("Expose area: x %d y %d width %d  height %d \n",pExposeEvent->area.x,pExposeEvent->area.y,pExposeEvent->area.width,pExposeEvent->area.height));
76
-		rClip.left = pGr->tlu(pExposeEvent->area.x);
77
-		rClip.top = pGr->tlu(pExposeEvent->area.y);
78
-		rClip.width = pGr->tlu(pExposeEvent->area.width)+1;
79
-		rClip.height = pGr->tlu(pExposeEvent->area.height)+1;
80
-#if GTK_CHECK_VERSION(3,0,0)
81
+		rClip.left = pGr->tlu(x);
82
+		rClip.top = pGr->tlu(y);
83
+ #if GTK_CHECK_VERSION(3,0,0)
84
+		rClip.width = pGr->tlu(width);
85
+		rClip.height = pGr->tlu(height);
86
 		static_cast<GR_CairoGraphics *>(pGr)->setCairo(cr);
87
 		pView->draw(&rClip);
88
 		static_cast<GR_CairoGraphics *>(pGr)->setCairo(NULL);
89
 #else
90
+		rClip.width = pGr->tlu(width)+1;
91
+		rClip.height = pGr->tlu(height)+1;
92
 		pView->draw(&rClip);
93
 #endif
94
 	}
95
-	return FALSE;
96
+	return TRUE;
97
 }
98
 
99
 static bool bScrollWait = false;
100
--- src/af/xap/gtk/xap_UnixFrameImpl.h
101
+++ src/af/xap/gtk/xap_UnixFrameImpl.h
102
@@ -152,7 +152,7 @@ protected:
103
 			static gint key_release_event(GtkWidget* w, GdkEventKey* e);
104
 			static gint delete_event(GtkWidget * w, GdkEvent * /*event*/, gpointer /*data*/);
105
 #if GTK_CHECK_VERSION(3,0,0)
106
-			static gint draw(GtkWidget * w, cairo_t * cr);
107
+			static gboolean draw(GtkWidget * w, cairo_t * cr);
108
 #else
109
 			static gint expose(GtkWidget * w, GdkEventExpose* pExposeEvent);
110
 #endif
111
112
(-)files/patch-pd_DocumentRDF.cpp (+13 lines)
Line 0 Link Here
1
--- src/text/ptbl/xp/pd_DocumentRDF.cpp.orig	2018-09-30 18:32:12 UTC
2
+++ src/text/ptbl/xp/pd_DocumentRDF.cpp
3
@@ -2269,8 +2269,8 @@ PD_RDFEvent::exportToFile( const std::st
4
         icalcomponent_set_uid( c,         m_uid.c_str() );
5
         icalcomponent_set_location( c,    m_location.c_str() );
6
         icalcomponent_set_description( c, m_desc.c_str() );
7
-        icalcomponent_set_dtstart( c,     icaltime_from_timet( m_dtstart, 0 ) );
8
-        icalcomponent_set_dtend( c,       icaltime_from_timet( m_dtend, 0 ) );
9
+        icalcomponent_set_dtstart( c,     icaltime_from_timet_with_zone( m_dtstart, 0, 0) );
10
+        icalcomponent_set_dtend( c,       icaltime_from_timet_with_zone( m_dtend, 0, 0  ) );
11
 
12
         char* data = icalcomponent_as_ical_string( c );
13
         std::ofstream oss( filename.c_str() );
(-)files/patch-plugins_collab_backends_service_xp_tls_tunnel.cpp (-24 lines)
Lines 1-24 Link Here
1
--- plugins/collab/backends/service/xp/tls_tunnel.cpp.orig	2014-11-04 01:12:14 UTC
2
+++ plugins/collab/backends/service/xp/tls_tunnel.cpp
3
@@ -306,8 +306,6 @@ void Proxy::tunnel_(transport_ptr_t tran
4
 	disconnect_(transport_ptr, session_ptr, local_socket_ptr, remote_socket_ptr);		
5
 }
6
 
7
-static const int PRIORITIES[] = { GNUTLS_KX_ANON_DH, GNUTLS_KX_RSA, GNUTLS_KX_DHE_DSS, GNUTLS_KX_DHE_RSA, 0 };
8
-static const int CIPHERS[] = { GNUTLS_CIPHER_AES_256_CBC, GNUTLS_CIPHER_AES_128_CBC, GNUTLS_CIPHER_3DES_CBC, GNUTLS_CIPHER_ARCFOUR_128, 0 };
9
 
10
 // FIXME: this clientproxy can only handle 1 SSL connection at the same time
11
 ClientProxy::ClientProxy(const std::string& connect_address, unsigned short connect_port, 
12
@@ -399,9 +397,9 @@ session_ptr_t ClientProxy::setup_tls_ses
13
 
14
 	// setup session
15
 	return_val_if_neg(gnutls_init(session_ptr.get(), GNUTLS_CLIENT), session_ptr_t());
16
-	return_val_if_neg(gnutls_set_default_priority(*session_ptr), session_ptr_t());
17
-	return_val_if_neg(gnutls_kx_set_priority(*session_ptr,PRIORITIES), session_ptr_t());
18
-	return_val_if_neg(gnutls_cipher_set_priority(*session_ptr,CIPHERS), session_ptr_t());
19
+	return_val_if_neg(gnutls_priority_set_direct(*session_ptr,"NORMAL"
20
+		":-CIPHER-ALL:+AES-256-CBC:+AES-128-CBC:+3DES-CBC:+ARCFOUR-128"
21
+		":-KX-ALL:+ANON-DH:+RSA:+DHE-DSS:+DHE-RSA",NULL), session_ptr_t());
22
 	return_val_if_neg(gnutls_credentials_set(*session_ptr, GNUTLS_CRD_CERTIFICATE, x509cred), session_ptr_t());
23
 
24
 	// setup transport
(-)files/patch-plugins_collab_backends_sipsimple_xp_SIPSimpleBuddy.h (-15 lines)
Lines 1-15 Link Here
1
--- plugins/collab/backends/sipsimple/xp/SIPSimpleBuddy.h.orig	2015-04-04 04:57:15 UTC
2
+++ plugins/collab/backends/sipsimple/xp/SIPSimpleBuddy.h
3
@@ -52,10 +52,10 @@ public:
4
 
5
 	virtual const DocTreeItem* getDocTreeItems() const
6
 	{
7
-		const vector<DocHandle*>& docHandles = getDocHandles();
8
+		const std::vector<DocHandle*>& docHandles = getDocHandles();
9
 		DocTreeItem* first = 0;
10
 		DocTreeItem* prev = 0;
11
-		for (vector<DocHandle*>::const_iterator pos = docHandles.begin(); pos != docHandles.end(); pos++)
12
+		for (std::vector<DocHandle*>::const_iterator pos = docHandles.begin(); pos != docHandles.end(); pos++)
13
 		{
14
 			DocTreeItem* item = new DocTreeItem();
15
 			item->m_type = DOCTREEITEM_TYPE_DOCUMENT;
(-)files/patch-src_text_ptbl_xp_pd__DocumentRDF.cpp (-26 lines)
Lines 1-26 Link Here
1
--- src/text/ptbl/xp/pd_DocumentRDF.cpp.orig	2015-03-31 15:14:42 UTC
2
+++ src/text/ptbl/xp/pd_DocumentRDF.cpp
3
@@ -570,6 +570,11 @@ bool PD_URI::operator==(const std::strin
4
     return m_value == b;
5
 }
6
 
7
+bool PD_URI::operator<(const PD_URI& b) const
8
+{
9
+    return m_value < b.m_value;
10
+}
11
+
12
 PD_URI
13
 PD_URI::prefixedToURI( PD_RDFModelHandle model ) const
14
 {
15
@@ -611,11 +616,6 @@ bool PD_URI::write( std::ostream& ss ) c
16
     return true;
17
 }
18
 
19
-bool operator<( PD_URI a, PD_URI b)
20
-{
21
-    return a.toString() < b.toString();
22
-}
23
-
24
 bool operator<( std::pair< PD_URI, PD_URI > a, PD_URI b)
25
 {
26
     return a.first.toString() < b.toString();
(-)files/patch-src_text_ptbl_xp_pd__DocumentRDF.h (-10 lines)
Lines 1-10 Link Here
1
--- src/text/ptbl/xp/pd_DocumentRDF.h.orig	2015-03-31 15:15:00 UTC
2
+++ src/text/ptbl/xp/pd_DocumentRDF.h
3
@@ -68,6 +68,7 @@ class ABI_EXPORT PD_URI
4
     bool isValid() const;
5
     bool operator==(const PD_URI& b) const;
6
     bool operator==(const std::string& b) const;
7
+    bool operator<(const PD_URI& b) const;
8
 
9
     virtual bool read( std::istream& ss );
10
     virtual bool write( std::ostream& ss ) const;

Return to bug 220975