From eb6322f6217e3571329d04da512a98f86f5829c8 Mon Sep 17 00:00:00 2001 From: rpmbuild Date: Tue, 16 Feb 2016 16:55:38 +0100 Subject: [PATCH] fix build with gcc 4.8 --- xmloff/source/core/RDFaExportHelper.cxx | 2 +- xmloff/source/core/RDFaImportHelper.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xmloff/source/core/RDFaExportHelper.cxx b/xmloff/source/core/RDFaExportHelper.cxx index 42a25f0..3f054eb 100644 --- a/xmloff/source/core/RDFaExportHelper.cxx +++ b/xmloff/source/core/RDFaExportHelper.cxx @@ -165,7 +165,7 @@ RDFaExportHelper::AddRDFa( xContent->getValue()); } - auto aStatementToCURIE = [this](rdf::Statement const& aStatement) { + std::function aStatementToCURIE = [this](rdf::Statement const& aStatement) { return makeCURIE(&this->m_rExport, aStatement.Predicate); }; OUStringBuffer property; diff --git a/xmloff/source/core/RDFaImportHelper.cxx b/xmloff/source/core/RDFaImportHelper.cxx index 96d784d..f78f17c 100644 --- a/xmloff/source/core/RDFaImportHelper.cxx +++ b/xmloff/source/core/RDFaImportHelper.cxx @@ -328,7 +328,7 @@ void RDFaInserter::InsertRDFaEntry( predicates.reserve(i_rEntry.m_xRDFaAttributes->m_Properties.size()); - auto aPropertyToXURI = [this](OUString const& aProperty) { return this->MakeURI(aProperty); }; + std::function(OUString const &)> aPropertyToXURI = [this](OUString const& aProperty) { return this->MakeURI(aProperty); }; // Store as variable so the type matches in both calls. ::std::remove_copy_if( -- 2.5.0