diff --git a/retroshare-gui/src/gui/chat/HandleRichText.cpp b/retroshare-gui/src/gui/chat/HandleRichText.cpp index afb00ed35..33a603153 100644 --- a/retroshare-gui/src/gui/chat/HandleRichText.cpp +++ b/retroshare-gui/src/gui/chat/HandleRichText.cpp @@ -55,10 +55,8 @@ void EmbedInHtmlImg::InitFromAwkwardHash(const QHash< QString, QString >& hash) * @param[in,out] currentElement The current node (which is of type Element) * @param[in] embedInfos The regular expression and the type of embedding to use */ -void embedHtml(QDomDocument& doc, QDomElement& currentElement, const EmbedInHtml& _embedInfos) +void embedHtml(QDomDocument& doc, QDomElement& currentElement, EmbedInHtml& embedInfos) { - EmbedInHtml embedInfos(_embedInfos) ; - if(embedInfos.myRE.pattern().length() == 0) // we'll get stuck with an empty regexp return; diff --git a/retroshare-gui/src/gui/chat/HandleRichText.h b/retroshare-gui/src/gui/chat/HandleRichText.h index 458a11100..bd6d481f2 100644 --- a/retroshare-gui/src/gui/chat/HandleRichText.h +++ b/retroshare-gui/src/gui/chat/HandleRichText.h @@ -103,7 +103,7 @@ public: }; -void embedHtml(QDomDocument& doc, QDomElement& currentElement, const EmbedInHtml& embedInfos); +void embedHtml(QDomDocument& doc, QDomElement& currentElement, EmbedInHtml& embedInfos); } // namespace RsChat