RetroShare/retroshare-gui/src/gui/chat
leander-256 5f2f87537b Because some versions of Qt require a non-const QRegExp, we copy _embedInfos to
a non-const variable:

EmbedInHtml embedInfos(_embedInfos) ;

However, since EmbedInHtml is the base class we lose any information added in
the derived class, which causes a problem with EmbedInHtmlImg when we do a
static_cast to what should have been the proper type here:

const EmbedInHtmlImg& embedImg = static_cast<const EmbedInHtmlImg&>(embedInfos);

embedInfos is not an EmbedInHtmlImg any more, just a mere EmbedInHtml.

We could const_cast the QRegExp object instead but let's keep it simple and
remove the embedInfos constness from the method's signature.


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3078 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-07 00:49:26 +00:00
..
HandleRichText.cpp Because some versions of Qt require a non-const QRegExp, we copy _embedInfos to 2010-06-07 00:49:26 +00:00
HandleRichText.h Because some versions of Qt require a non-const QRegExp, we copy _embedInfos to 2010-06-07 00:49:26 +00:00
PopupChatDialog.cpp Suppressed the possibility for browsable only files to be searched by hash from turtle router. 2010-05-29 13:17:09 +00:00
PopupChatDialog.h Changed settings to local variable, no more as pointer on all classes. 2010-05-11 20:02:52 +00:00
PopupChatDialog.ui Added functionality to save a Privat Chat session and GroupChat History via ToolButton 2010-04-27 22:08:38 +00:00