Skip to content
Snippets Groups Projects
Commit ee26fdf3 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Designer: Pass strings by reference


Change-Id: I86395393f5b79a2ade99e4422453bec5395d2898
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent b3a56046
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@ private:
class DocumentContainsDeclaration: protected SymbolVisitor
{
public:
bool operator()(Scope *scope, const QString function)
bool operator()(Scope *scope, const QString &function)
{
if (!scope)
return false;
......@@ -139,13 +139,13 @@ private:
Overview m_overview;
};
bool documentContainsFunctionDefinition(const Document::Ptr &document, const QString function)
bool documentContainsFunctionDefinition(const Document::Ptr &document, const QString &function)
{
return DocumentContainsFunctionDefinition()(document->globalNamespace(), function);
}
bool documentContainsMemberFunctionDeclaration(const Document::Ptr &document,
const QString declaration)
const QString &declaration)
{
return DocumentContainsDeclaration()(document->globalNamespace(), declaration);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment