Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Mar 2020 08:42:59 +0000 (UTC)
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r528276 - head/textproc/libstaroffice/files
Message-ID:  <202003120842.02C8gx4O041394@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lwhsu
Date: Thu Mar 12 08:42:59 2020
New Revision: 528276
URL: https://svnweb.freebsd.org/changeset/ports/528276

Log:
  Fix build with clang 10.0.0
  
  PR:		244402
  Submitted by:	dim

Added:
  head/textproc/libstaroffice/files/
  head/textproc/libstaroffice/files/patch-src_lib_STOFFOLEParser.cxx   (contents, props changed)
  head/textproc/libstaroffice/files/patch-src_lib_STOFFSpreadsheetListener.hxx   (contents, props changed)
  head/textproc/libstaroffice/files/patch-src_lib_StarObjectSmallGraphic.cxx   (contents, props changed)

Added: head/textproc/libstaroffice/files/patch-src_lib_STOFFOLEParser.cxx
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/libstaroffice/files/patch-src_lib_STOFFOLEParser.cxx	Thu Mar 12 08:42:59 2020	(r528276)
@@ -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("");

Added: head/textproc/libstaroffice/files/patch-src_lib_STOFFSpreadsheetListener.hxx
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/libstaroffice/files/patch-src_lib_STOFFSpreadsheetListener.hxx	Thu Mar 12 08:42:59 2020	(r528276)
@@ -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 */

Added: head/textproc/libstaroffice/files/patch-src_lib_StarObjectSmallGraphic.cxx
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/libstaroffice/files/patch-src_lib_StarObjectSmallGraphic.cxx	Thu Mar 12 08:42:59 2020	(r528276)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003120842.02C8gx4O041394>