>From 559e6a7bcd1c0c9c870d7f6afcb3986e4ac87b30 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 27 Feb 2016 19:23:53 +0100 Subject: [PATCH] Take strings of correct type in HTML helper functions By convention, functions escaping HTML text must take std::string and not wxString which is supposed to contain the already escaped version. --- group_quote_pdf_gen_wx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/group_quote_pdf_gen_wx.cpp b/group_quote_pdf_gen_wx.cpp index abff3e5..7fe8a4f 100644 --- a/group_quote_pdf_gen_wx.cpp +++ b/group_quote_pdf_gen_wx.cpp @@ -157,7 +157,7 @@ wxString wrap_if_not_empty(wxString const& html) /// Transform 'html' -> '

html', but return empty string unchanged. -wxString brbr(wxString const& html) +wxString brbr(std::string const& html) { return wrap_if_not_empty @@ -169,7 +169,7 @@ wxString brbr(wxString const& html) /// Transform 'html' -> '

html', but return empty string unchanged. -wxString brbrb(wxString const& html) +wxString brbrb(std::string const& html) { return wrap_if_not_empty -- 2.1.0.rc0