]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Use empty() to check for emptiness
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 27 Apr 2020 16:13:38 +0000 (18:13 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 27 Apr 2020 16:13:38 +0000 (18:13 +0200)
As suggested by clang-tidy.

src/ccache.cpp

index 417cbc0ac24baf72882d2de5e2e3a0fec7b85219..a53f7a11fca2c9e4ceb9342082851b03ef54b148 100644 (file)
@@ -2847,7 +2847,7 @@ process_args(Context& ctx,
 
       auto dependencies = Util::split_into_views(dependencies_env, " ");
 
-      if (dependencies.size() > 0) {
+      if (!dependencies.empty()) {
         auto abspath_file = dependencies.at(0);
         args_info.output_dep = make_relative_path(ctx, abspath_file);
       }