From f8038792cab8ed7ffb75b12d01cbe8f5a93555fc Mon Sep 17 00:00:00 2001 From: Christian Date: Fri, 24 Oct 2014 16:43:11 +0200 Subject: Remove nullptr comparisons. --- Scope.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Scope.cpp') diff --git a/Scope.cpp b/Scope.cpp index 28a54dd2..4fcd2f45 100644 --- a/Scope.cpp +++ b/Scope.cpp @@ -41,7 +41,7 @@ Declaration* Scope::resolveName(ASTString const& _name, bool _recursive) const auto result = m_declarations.find(_name); if (result != m_declarations.end()) return result->second; - if (_recursive && m_outerScope != nullptr) + if (_recursive && m_outerScope) return m_outerScope->resolveName(_name, true); return nullptr; } -- cgit v1.2.3