1
0
peilaus alkaen https://github.com/quitesimpleorg/qsmaddy.git synced 2024-11-25 00:32:36 +01:00

make Parser::Parse accept istreams instead of stringstream

This commit is contained in:
Evan Klitzke 2020-07-12 11:28:33 -07:00
vanhempi 19338d2b56
commit 71ee49d1ea
No known key found for this signature in database
GPG avaimen ID: 7547F1FDF6629AFB
2 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa

Näytä tiedosto

@ -7,4 +7,4 @@ a license to everyone to use it as detailed in LICENSE.)
M. Petra Baranski (info@progsource.de) M. Petra Baranski (info@progsource.de)
Patrick José Pereira (patrickelectric@gmail.com) Patrick José Pereira (patrickelectric@gmail.com)
Martin Kopecky (martin.kopecky357@gmail.com) Martin Kopecky (martin.kopecky357@gmail.com)
Evan Klitzke (evan@eklitzke.org)

Näytä tiedosto

@ -73,11 +73,11 @@ public:
* Parse * Parse
* *
* @method * @method
* @param {const std::stringstream&} markdown * @param {const std::istream&} markdown
* @return {std::string} HTML * @return {std::string} HTML
*/ */
std::string std::string
Parse(std::stringstream& markdown) const Parse(std::istream& markdown) const
{ {
std::string result = ""; std::string result = "";
std::shared_ptr<BlockParser> currentBlockParser = nullptr; std::shared_ptr<BlockParser> currentBlockParser = nullptr;