aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorIvan Komissarov <ABBAPOH@gmail.com>2019-11-23 02:16:19 +0900
committerIvan Komissarov <ABBAPOH@gmail.com>2019-11-25 18:14:47 +0000
commit2e417555d0c993811f6db4e3f93cd2a3b9f250aa (patch)
tree305cde2266db120381c7069a554b68ce460c65e7 /examples
parent4eb26770f04380c14e771053a3e04273b31f6b20 (diff)
Apply 'readability-container-size-empty' fix-it
Change-Id: I4693b9a2c941b63e8b60bbe5d188031e648354f6 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/protobuf/cpp/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/protobuf/cpp/main.cpp b/examples/protobuf/cpp/main.cpp
index 703a9d302..8d2ca9763 100644
--- a/examples/protobuf/cpp/main.cpp
+++ b/examples/protobuf/cpp/main.cpp
@@ -96,7 +96,7 @@ void listPeople(const tutorial::AddressBook& address_book)
std::cout << "Person ID: " << person.id() << std::endl;
std::cout << " Name: " << person.name() << std::endl;
- if (person.email() != "") {
+ if (!person.email().empty()) {
std::cout << " E-mail address: " << person.email() << std::endl;
}