From 8785e3e9a01de095f794d7f81ea00e70a337dee0 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Fri, 23 Jan 2015 15:36:10 +0000 Subject: Replace size() calls on containers with empty() calls where appropriate. NFC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit http://reviews.llvm.org/D7090 Patch by Gábor Horváth! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@226914 91177308-0d34-0410-b5e6-96231b3b80d8 --- examples/PrintFunctionNames/PrintFunctionNames.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/PrintFunctionNames') diff --git a/examples/PrintFunctionNames/PrintFunctionNames.cpp b/examples/PrintFunctionNames/PrintFunctionNames.cpp index e8a361dbee..b554caeb2a 100644 --- a/examples/PrintFunctionNames/PrintFunctionNames.cpp +++ b/examples/PrintFunctionNames/PrintFunctionNames.cpp @@ -55,7 +55,7 @@ protected: return false; } } - if (args.size() && args[0] == "help") + if (!args.empty() && args[0] == "help") PrintHelp(llvm::errs()); return true; -- cgit v1.2.1