Content-Length: 268259 | pFad | http://github.com/postgrespro/libblobstamper/commit/18e28f3b1aebc5c774bc3a39be98e9367a34dcfd

86 .empty() method works better than .size() == 0. Thanks to m.korotkov@… · postgrespro/libblobstamper@18e28f3 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/libblobstamper/commit/18e28f3b1aebc5c774bc3a39be98e9367a34dcfd

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy