Skip to content

Commit 18e28f3

Browse files
.empty() method works better than .size() == 0. Thanks to m.korotkov@postgrespro.ru for hint
1 parent 5eee873 commit 18e28f3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

blobstamper/stamp_json.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ PoolPickerStamp::ExtractStr(std::shared_ptr<Blob> blob)
7474
}
7575
}
7676
}
77-
if (unbounded_pool.size()>0)
77+
if (! unbounded_pool.empty())
7878
target_pool = unbounded_pool;
7979

80-
if (target_pool.size() == 0)
80+
if (target_pool.empty())
8181
{
8282
/* Most probably we are in out of data situation. Check it
8383
* and throw an exception. Or abort if something goes wrong
@@ -187,4 +187,3 @@ StampJSON::StampJSON()
187187
add_weak(stamp_a);
188188
add_weak(stamp_h);
189189
}
190-

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy