commit | 3d0a879593821df0d5c72424f0fb60aa8b266607 | [log] [tgz] |
---|---|---|
author | thestig <[email protected]> | Sat Jan 10 06:04:33 2015 |
committer | Commit bot <[email protected]> | Sat Jan 10 06:06:18 2015 |
tree | 54c80a5261b3452d1c87f8c7a4fae33aacff2552 | |
parent | 2eb44014970b8aa0333940a9f88ebd83edb497ac [diff] [blame] |
Cleanup: Call std::string::empty instead of comparing against "". Review URL: https://codereview.chromium.org/811583003 Cr-Commit-Position: refs/heads/master@{#310968}
diff --git a/ppapi/tests/test_var.cc b/ppapi/tests/test_var.cc index 714008a..f7de6084 100644 --- a/ppapi/tests/test_var.cc +++ b/ppapi/tests/test_var.cc
@@ -140,7 +140,7 @@ // Should not crash, and make an empty string. const char* null_string = NULL; pp::Var null_var(null_string); - if (!null_var.is_string() || null_var.AsString() != "") { + if (!null_var.is_string() || !null_var.AsString().empty()) { return "Expected NULL input to make an empty string Var."; }