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

Unified Diff: Source/core/xml/XPathVariableReference.cpp

Issue 344553002: Fix style erros in XPath-related files. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/core/xml/XPathVariableReference.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XPathVariableReference.cpp
diff --git a/Source/core/xml/XPathVariableReference.cpp b/Source/core/xml/XPathVariableReference.cpp
index 9d3ca1e145efc92f438ade19c9f2d430332d8228..8eb35c7be262ae0cb2c2707dab4492ae43476cb7 100644
--- a/Source/core/xml/XPathVariableReference.cpp
+++ b/Source/core/xml/XPathVariableReference.cpp
@@ -40,9 +40,11 @@ VariableReference::VariableReference(const String& name)
Value VariableReference::evaluate() const
{
HashMap<String, String>& bindings = evaluationContext().variableBindings;
- if (!bindings.contains(m_name))
- // FIXME: Is this the right thing to do if an unknown variable is referenced?
+ if (!bindings.contains(m_name)) {
+ // FIXME: Is this the right thing to do if an unknown variable is
+ // referenced?
return "";
+ }
return bindings.get(m_name);
}
« no previous file with comments | « Source/core/xml/XPathVariableReference.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698