1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-16 10:09:58 +00:00

Use empty() instead of size() == 0

This commit is contained in:
Carles Fernandez 2019-02-11 18:36:59 +01:00
parent c8ae93d2b8
commit 071915407c

View File

@ -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;