From e6402fab7e8e858314ea0ea3b5c496c17a2c272b Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Thu, 26 Sep 2013 23:01:36 +0200 Subject: cppcheck: performance (bzr r12598) --- src/ui/dialog/template-widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/dialog/template-widget.cpp') diff --git a/src/ui/dialog/template-widget.cpp b/src/ui/dialog/template-widget.cpp index 7e34e5a58..898903f2b 100644 --- a/src/ui/dialog/template-widget.cpp +++ b/src/ui/dialog/template-widget.cpp @@ -120,7 +120,7 @@ void TemplateWidget::_displayTemplateDetails() if (_current_template.long_description != "") message += _("Description: ") + _current_template.long_description + "\n\n"; - if (_current_template.keywords.size() > 0){ + if (~_current_template.keywords.empty()){ message += _("Keywords: "); for (std::set::iterator it = _current_template.keywords.begin(); it != _current_template.keywords.end(); ++it) message += *it + " "; -- cgit v1.2.3