Commit d4ee5af7 authored by hjk's avatar hjk
Browse files

debugger: code cosmetics

parent 72671f14
......@@ -12,8 +12,14 @@
namespace Debugger {
namespace Internal {
enum GuessChildrenResult { HasChildren, HasNoChildren, HasPossiblyChildren };
static QString qt_escape(const QString& plain)
enum GuessChildrenResult
{
HasChildren,
HasNoChildren,
HasPossiblyChildren
};
static QString htmlEscape(const QString &plain)
{
QString rich;
rich.reserve(int(plain.length() * 1.1));
......@@ -306,7 +312,7 @@ static void formatToolTipRow(QTextStream &str,
const QString &category, const QString &value)
{
str << "<tr><td>" << category << "</td><td> : </td><td>"
<< qt_escape(value) << "</td></tr>";
<< htmlEscape(value) << "</td></tr>";
}
static QString typeToolTip(const WatchData &wd)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment