Use empty() instead of comparing size() with 0.
Issue found by cppcheck.
This commit is contained in:
parent
ca033d87a6
commit
bec4e9d6c0
1 changed files with 1 additions and 1 deletions
|
@ -939,7 +939,7 @@ size_t ana_network_manager::send_raw_data( const char* base_char,
|
|||
}
|
||||
else
|
||||
{
|
||||
if ( components_.size() == 0 )
|
||||
if ( components_.empty() )
|
||||
return 0;
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue