libfreehand: fix build with gcc 9

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2019-06-06 22:12:23 +02:00
parent f4ed9da64e
commit 6eb7009aa5
2 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
From da4a016b7e9c03f36657f684ae62d33fc5a94f9b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
Date: Thu, 6 Jun 2019 22:09:44 +0200
Subject: [PATCH] Fix build with gcc 9
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
| ../../../libfreehand-0.1.2/src/lib/FHCollector.cpp:285:68: error: implicitly-declared 'constexpr libfreehand::FHTransform& libfreehand::FHTransform::operator=(const libfreehand::FHTransform&)' is deprecated [-Werror=deprecated-copy]
Upstream-Status: Pending
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
---
src/lib/FHTransform.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/lib/FHTransform.h b/src/lib/FHTransform.h
index a53e13a..47f40f7 100644
--- a/src/lib/FHTransform.h
+++ b/src/lib/FHTransform.h
@@ -20,6 +20,7 @@ struct FHTransform
FHTransform();
FHTransform(double m11, double m21, double m12, double m22, double m13, double m23);
FHTransform(const FHTransform &trafo);
+ FHTransform& operator=(const FHTransform& other) = default;
void applyToPoint(double &x, double &y) const;
void applyToArc(double &rx, double &ry, double &rotation, bool &sweep, double &endx, double &endy) const;
--
2.20.1

View File

@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = " \
SRC_URI = " \
http://dev-www.libreoffice.org/src/${BPN}/${BPN}-${PV}.tar.xz \
file://0001-WaE-unnecessary-parentheses-in-declaration-of-paddin.patch \
file://0002-Fix-build-with-gcc-9.patch \
"
SRC_URI[md5sum] = "c3788f5686839fd097bd77d8f51c3d04"
SRC_URI[sha256sum] = "0e422d1564a6dbf22a9af598535425271e583514c0f7ba7d9091676420de34ac"