From 260f6f3f6e4582158c0fefcc942d4c546fea0202 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Mon, 18 Jan 2021 17:59:14 +0100 Subject: [PATCH] fix unix build issue --- src/cpsp/adminNodeServerTest.cpsp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/cpsp/adminNodeServerTest.cpsp b/src/cpsp/adminNodeServerTest.cpsp index 79aabccf7..322b120bb 100644 --- a/src/cpsp/adminNodeServerTest.cpsp +++ b/src/cpsp/adminNodeServerTest.cpsp @@ -266,8 +266,9 @@ enum PageType auto gn_answear = jsonrpc.request("getTransactions", params); if(!gn_answear.isNull()) { std::stringstream ss; - Poco::JSON::Stringifier::stringify(gn_answear, ss, 4, -1, Poco::JSON_PRESERVE_KEY_ORDER); %> - <%= DataTypeConverter::replaceNewLineWithBr(ss.str()) %><% + Poco::JSON::Stringifier::stringify(gn_answear, ss, 4, -1, Poco::JSON_PRESERVE_KEY_ORDER); + auto answear_string = ss.str(); %> + <%= DataTypeConverter::replaceNewLineWithBr(answear_string) %><% } } %>

Time: <%= time2.string() %>

@@ -285,8 +286,8 @@ enum PageType if(!gn_answear.isNull()) { std::stringstream ss; Poco::JSON::Stringifier::stringify(gn_answear, ss, 4, -1, Poco::JSON_PRESERVE_KEY_ORDER); - //printf("result: %s\n", ss.str().data());%> - <%= DataTypeConverter::replaceNewLineWithBr(ss.str()) %><% + auto answear_string = ss.str();%> + <%= DataTypeConverter::replaceNewLineWithBr(answear_string) %><% } %>

Time: <%= time3.string() %>