aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem.h
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-07-22 18:01:54 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:07 -0300
commit28da24d29cfc5137a4cf1940c9fa45d519334e17 (patch)
tree07698e6e855b7c2c9329909063cca50e9bc8f004 /typesystem.h
parent6cb4e7de26ca84cac29775d9a7360c4a20b5cfbf (diff)
Fixed memory leak.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'typesystem.h')
-rw-r--r--typesystem.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/typesystem.h b/typesystem.h
index 7c5363e9..a5c954a9 100644
--- a/typesystem.h
+++ b/typesystem.h
@@ -114,7 +114,7 @@ struct ArgumentOwner
class APIEXTRACTOR_API CodeSnipFragment
{
private:
- const QString m_code;
+ QString m_code;
TemplateInstance *m_instance;
public:
@@ -135,15 +135,15 @@ public:
void addCode(const QString &code)
{
- codeList.append(new CodeSnipFragment(code));
+ codeList.append(CodeSnipFragment(code));
}
void addTemplateInstance(TemplateInstance *ti)
{
- codeList.append(new CodeSnipFragment(ti));
+ codeList.append(CodeSnipFragment(ti));
}
- QList<CodeSnipFragment*> codeList;
+ QList<CodeSnipFragment> codeList;
};
class CustomFunction : public CodeSnipAbstract