diff --git a/tooltipcontent.cpp b/tooltipcontent.cpp index 6a928a08c..9927f0258 100644 --- a/tooltipcontent.cpp +++ b/tooltipcontent.cpp @@ -227,11 +227,10 @@ void ToolTipContent::registerResources(QTextDocument *document) const while (it.hasNext()) { it.next(); const ToolTipResource &r = it.value(); - QTextDocument::ResourceType t; + QTextDocument::ResourceType t = QTextDocument::ImageResource; switch (r.type) { case ImageResource: - t = QTextDocument::ImageResource; break; case HtmlResource: t = QTextDocument::HtmlResource;