diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-06-10 20:21:47 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-06-10 20:21:47 +0100 |
commit | b29cdd365c1176ff80fbab29a604e0add17fdd08 (patch) | |
tree | 532e1db9c7f7945a209e76316a41a6b2f5305d8b | |
parent | Generic xxd action (diff) | |
download | gentoobrowse-api-b29cdd365c1176ff80fbab29a604e0add17fdd08.tar.bz2 gentoobrowse-api-b29cdd365c1176ff80fbab29a604e0add17fdd08.tar.xz gentoobrowse-api-b29cdd365c1176ff80fbab29a604e0add17fdd08.zip |
Return mime basic parts
-rw-r--r-- | gentoobrowse-api/service/xsltStreamSerializer.cpp | 4 | ||||
-rw-r--r-- | 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<TextPart>(Headers {}, "text/html", strm.str()); } - IceTray::Mime::BasicSinglePartPtr XsltStreamSerializer::getText(xmlDoc * result) + IceTray::Mime::BasicPartPtr XsltStreamSerializer::getText(xmlDoc * result) { std::stringstream strm; std::vector<std::string> 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; |