Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Unified Diff: o3d/core/cross/gl/effect_gl.cc

Issue 6602049: Pure pedantry: Replace all ".size() == 0" with ".empty()". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: o3d/core/cross/gl/effect_gl.cc
diff --git a/o3d/core/cross/gl/effect_gl.cc b/o3d/core/cross/gl/effect_gl.cc
index 71ce60228ff2e01d9aadf894eb01e9a7c0bd418d..755d80ada743761a68eb0c8f4570e2fee6dde4fe 100644
--- a/o3d/core/cross/gl/effect_gl.cc
+++ b/o3d/core/cross/gl/effect_gl.cc
@@ -378,7 +378,7 @@ ParamTexture* EffectGL::GetTextureParamFromCgSampler(
DLOG_ASSERT(cgGetParameterType(cg_sampler) != CG_SAMPLER);
String sampler_name = cgGetParameterName(cg_sampler);
String param_name = GetTextureNameFromSamplerParamName(sampler_name);
- if (param_name.size() == 0) {
+ if (param_name.empty()) {
// Sampler has no texture associated with it.
return NULL;
}

Powered by Google App Engine
This is Rietveld 408576698