From 071915407c2927d104ec8782ff7847122a8db764 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Mon, 11 Feb 2019 18:36:59 +0100 Subject: [PATCH] Use empty() instead of size() == 0 --- src/tests/common-files/gnuplot_i.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/common-files/gnuplot_i.h b/src/tests/common-files/gnuplot_i.h index 7ef3acad8..5944d01c3 100644 --- a/src/tests/common-files/gnuplot_i.h +++ b/src/tests/common-files/gnuplot_i.h @@ -861,7 +861,7 @@ Gnuplot &Gnuplot::plot_xy_err(const X &x, const E &dy, const std::string &title) { - if (x.size() == 0 || y.size() == 0 || dy.size() == 0) + if (x.empty() || y.empty() || dy.empty()) { throw GnuplotException("std::vectors too small"); return *this;