Skip to content

Commit a91fa80

Browse files
fix compilation warning.
1 parent d9b84a5 commit a91fa80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/buildtest/foo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ QJsonArray Foo::getAllJson()
132132
QJsonArray array;
133133
TMongoODMapper<FooObject> mapper;
134134

135-
if (mapper.find() > 0) {
135+
if (mapper.find()) {
136136
while (mapper.next()) {
137137
array.append(QJsonValue(QJsonObject::fromVariantMap(Foo(mapper.value()).toVariantMap())));
138138
}

0 commit comments

Comments
 (0)