From de49812990871e1705b64051c35161d5e6400269 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 24 Dec 2018 14:11:38 +0000 Subject: gentoo resync : 24.12.2018 --- ...co-3.1.4-xmloutputclosecallback-signature.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 kde-misc/tellico/files/tellico-3.1.4-xmloutputclosecallback-signature.patch (limited to 'kde-misc/tellico/files/tellico-3.1.4-xmloutputclosecallback-signature.patch') diff --git a/kde-misc/tellico/files/tellico-3.1.4-xmloutputclosecallback-signature.patch b/kde-misc/tellico/files/tellico-3.1.4-xmloutputclosecallback-signature.patch new file mode 100644 index 000000000000..703af9c23e1e --- /dev/null +++ b/kde-misc/tellico/files/tellico-3.1.4-xmloutputclosecallback-signature.patch @@ -0,0 +1,30 @@ +From 02cde6b20a3a0606aef7bf98a14ca70c7615be2c Mon Sep 17 00:00:00 2001 +From: Pino Toscano +Date: Wed, 19 Dec 2018 10:23:44 +0100 +Subject: Fix signature of xmlOutputCloseCallback function + +xmlOutputCloseCallback returns int, so adjust the closeQString callback +to return 0 (i.e. no error). +--- + src/translators/xslthandler.cpp | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/translators/xslthandler.cpp b/src/translators/xslthandler.cpp +index 32b3e02..3d249fd 100644 +--- a/src/translators/xslthandler.cpp ++++ b/src/translators/xslthandler.cpp +@@ -52,9 +52,10 @@ static int writeToQString(void* context, const char* buffer, int len) { + return len; + } + +-static void closeQString(void* context) { ++static int closeQString(void* context) { + QString* t = static_cast(context); + *t += QLatin1String("\n"); ++ return 0; + } + + using Tellico::XSLTHandler; +-- +cgit v1.1 + -- cgit v1.2.3