From ad225ea745af38153a47100b2afdcd01bd22d3c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 19 Dec 2009 19:24:48 +0100 Subject: [PATCH] stl size: added documentation --- lib/checkstl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/checkstl.h b/lib/checkstl.h index 131c77af2..26c3b79a2 100644 --- a/lib/checkstl.h +++ b/lib/checkstl.h @@ -149,7 +149,8 @@ private: " * mismatching containers in calls\n" " * dereferencing an erased iterator\n" " * for vectors: using iterator/pointer after push_back has been used\n" - " * dangerous usage of find"; + " * dangerous usage of find\n" + " * optimisation: using empty() instead of size()"; } bool isStlContainer(const Token *tok);