From b29cdd365c1176ff80fbab29a604e0add17fdd08 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 10 Jun 2019 20:21:47 +0100 Subject: Return mime basic parts --- gentoobrowse-api/service/xsltStreamSerializer.cpp | 4 ++-- gentoobrowse-api/service/xsltStreamSerializer.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gentoobrowse-api/service/xsltStreamSerializer.cpp b/gentoobrowse-api/service/xsltStreamSerializer.cpp index 376d03e..f796300 100644 --- a/gentoobrowse-api/service/xsltStreamSerializer.cpp +++ b/gentoobrowse-api/service/xsltStreamSerializer.cpp @@ -47,7 +47,7 @@ namespace Gentoo { }); } - IceTray::Mime::BasicSinglePartPtr XsltStreamSerializer::getHtml(xmlDoc * result) + IceTray::Mime::BasicPartPtr XsltStreamSerializer::getHtml(xmlDoc * result) { std::stringstream strm; xmlOutputBufferPtr buf = xmlOutputBufferCreateIO(xmlstrmwritecallback, xmlstrmclosecallback, &strm, NULL); @@ -56,7 +56,7 @@ namespace Gentoo { return std::make_shared(Headers {}, "text/html", strm.str()); } - IceTray::Mime::BasicSinglePartPtr XsltStreamSerializer::getText(xmlDoc * result) + IceTray::Mime::BasicPartPtr XsltStreamSerializer::getText(xmlDoc * result) { std::stringstream strm; std::vector callLynx; diff --git a/gentoobrowse-api/service/xsltStreamSerializer.h b/gentoobrowse-api/service/xsltStreamSerializer.h index 7719856..20c3c05 100644 --- a/gentoobrowse-api/service/xsltStreamSerializer.h +++ b/gentoobrowse-api/service/xsltStreamSerializer.h @@ -15,8 +15,8 @@ namespace Gentoo { void Serialize(Slicer::ModelPartForRootPtr mp) override; protected: - static IceTray::Mime::BasicSinglePartPtr getHtml(xmlDoc *); - static IceTray::Mime::BasicSinglePartPtr getText(xmlDoc *); + static IceTray::Mime::BasicPartPtr getHtml(xmlDoc *); + static IceTray::Mime::BasicPartPtr getText(xmlDoc *); IceTray::Mail::EmailPtr mail; xmlpp::Document * doc; -- cgit v1.2.3