summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
Diffstat (limited to 'webkit')
-rw-r--r--webkit/gpu/webgraphicscontext3d_in_process_impl.cc2
-rw-r--r--webkit/plugins/npapi/plugin_lib_mac.mm2
-rw-r--r--webkit/tools/test_shell/test_shell_main.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
index 6f9d803..835611b 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
+++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
@@ -1012,7 +1012,7 @@ WebGraphicsContext3D::Attributes WebGraphicsContext3DInProcessImpl::
WGC3Denum WebGraphicsContext3DInProcessImpl::getError() {
DCHECK(synthetic_errors_list_.size() == synthetic_errors_set_.size());
- if (synthetic_errors_set_.size() > 0) {
+ if (!synthetic_errors_set_.empty()) {
WGC3Denum error = synthetic_errors_list_.front();
synthetic_errors_list_.pop_front();
synthetic_errors_set_.erase(error);
diff --git a/webkit/plugins/npapi/plugin_lib_mac.mm b/webkit/plugins/npapi/plugin_lib_mac.mm
index f80e8f2..c703b2c 100644
--- a/webkit/plugins/npapi/plugin_lib_mac.mm
+++ b/webkit/plugins/npapi/plugin_lib_mac.mm
@@ -219,7 +219,7 @@ bool ReadSTRPluginInfo(const FilePath& filename, CFBundleRef bundle,
info->path = filename;
if (plugin_vers)
info->version = base::SysNSStringToUTF16(plugin_vers);
- if (have_plugin_descs && plugin_descs.size() > 0)
+ if (have_plugin_descs && !plugin_descs.empty())
info->desc = UTF8ToUTF16(plugin_descs[0]);
else
info->desc = UTF8ToUTF16(filename.BaseName().value());
diff --git a/webkit/tools/test_shell/test_shell_main.cc b/webkit/tools/test_shell/test_shell_main.cc
index 7cb00df..3feef80 100644
--- a/webkit/tools/test_shell/test_shell_main.cc
+++ b/webkit/tools/test_shell/test_shell_main.cc
@@ -241,7 +241,7 @@ int main(int argc, char* argv[]) {
starting_url = net::FilePathToFileURL(path);
const std::vector<CommandLine::StringType>& args = parsed_command_line.args();
- if (args.size() > 0) {
+ if (!args.empty()) {
GURL url(args[0]);
if (url.is_valid()) {
starting_url = url;