mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-05-29 12:44:08 +00:00
Use empty() instead of size() == 0
This commit is contained in:
parent
c8ae93d2b8
commit
071915407c
@ -861,7 +861,7 @@ Gnuplot &Gnuplot::plot_xy_err(const X &x,
|
|||||||
const E &dy,
|
const E &dy,
|
||||||
const std::string &title)
|
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");
|
throw GnuplotException("std::vectors too small");
|
||||||
return *this;
|
return *this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user