Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit18e28f3

Browse files
.empty() method works better than .size() == 0. Thanks to m.korotkov@postgrespro.ru for hint
1 parent5eee873 commit18e28f3

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)

[8]ページ先頭

©2009-2025 Movatter.jp