1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

Fix build with clang 10.0.0

PR:		244402
Submitted by:	dim
This commit is contained in:
Li-Wen Hsu 2020-03-12 08:42:59 +00:00
parent 610180bb31
commit f5073cf266
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=528276
3 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- src/lib/STOFFOLEParser.cxx.orig 2018-01-30 09:10:08 UTC
+++ src/lib/STOFFOLEParser.cxx
@@ -506,7 +506,7 @@ bool STOFFOLEParser::readSummaryInformation(STOFFInput
ascii.addPos(pos);
ascii.addNote(f.str().c_str());
- for (auto const posToType : posToTypeMap) {
+ for (auto const &posToType : posToTypeMap) {
pos=posToType.first;
input->seek(pos, librevenge::RVNG_SEEK_SET);
f.str("");

View File

@ -0,0 +1,11 @@
--- src/lib/STOFFSpreadsheetListener.hxx.orig 2018-04-25 09:25:45 UTC
+++ src/lib/STOFFSpreadsheetListener.hxx
@@ -61,7 +61,7 @@ struct State;
}
/** This class contents the main functions needed to create a spreadsheet processing Document */
-class STOFFSpreadsheetListener : public STOFFListener
+class STOFFSpreadsheetListener final : public STOFFListener
{
public:
/** constructor */

View File

@ -0,0 +1,20 @@
--- src/lib/StarObjectSmallGraphic.cxx.orig 2018-04-25 11:44:09 UTC
+++ src/lib/StarObjectSmallGraphic.cxx
@@ -1389,7 +1389,7 @@ bool SdrGraphicPath::send(STOFFListenerPtr &listener,
else {
shape.m_command=STOFFGraphicShape::C_Path;
librevenge::RVNGPropertyListVector path;
- for (auto const poly : m_pathPolygons)
+ for (auto const &poly : m_pathPolygons)
poly.addToPath(path, isClosed, state.m_global->m_relativeUnit, state.m_global->m_offset);
shape.m_propertyList.insert("svg:d", path);
}
@@ -1402,7 +1402,7 @@ bool SdrGraphicPath::send(STOFFListenerPtr &listener,
////////////////////////////////////////
//! Internal: virtual class to store a Sdr graphic uno
-class SdrGraphicUno : public SdrGraphicRect
+class SdrGraphicUno final : public SdrGraphicRect
{
public:
//! constructor