diff options
author | thestig <thestig@chromium.org> | 2015-01-09 22:04:33 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-10 06:06:18 +0000 |
commit | 3d0a879593821df0d5c72424f0fb60aa8b266607 (patch) | |
tree | 54c80a5261b3452d1c87f8c7a4fae33aacff2552 /gpu/tools | |
parent | 2eb44014970b8aa0333940a9f88ebd83edb497ac (diff) | |
download | chromium_src-3d0a879593821df0d5c72424f0fb60aa8b266607.zip chromium_src-3d0a879593821df0d5c72424f0fb60aa8b266607.tar.gz chromium_src-3d0a879593821df0d5c72424f0fb60aa8b266607.tar.bz2 |
Cleanup: Call std::string::empty instead of comparing against "".
Review URL: https://codereview.chromium.org/811583003
Cr-Commit-Position: refs/heads/master@{#310968}
Diffstat (limited to 'gpu/tools')
-rw-r--r-- | gpu/tools/compositor_model_bench/compositor_model_bench.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/tools/compositor_model_bench/compositor_model_bench.cc b/gpu/tools/compositor_model_bench/compositor_model_bench.cc index 8042392..1160ff7 100644 --- a/gpu/tools/compositor_model_bench/compositor_model_bench.cc +++ b/gpu/tools/compositor_model_bench/compositor_model_bench.cc @@ -86,7 +86,7 @@ class Simulator { // If the name of the file wasn't ASCII, this will give an empty simulation // name, but that's not really harmful (we'll still warn about it though.) spec.simulation_name = path.BaseName().RemoveExtension().MaybeAsASCII(); - if (spec.simulation_name == "") { + if (spec.simulation_name.empty()) { LOG(WARNING) << "Simulation for path " << path.LossyDisplayName() << " will have a blank simulation name, since the file name isn't ASCII"; } |