From 41b4af05010ef9ae564fcff00b904f22c5f617e0 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Wed, 11 Aug 2010 14:24:28 +0200 Subject: Get rid of the prefix findOrInsert for the functions in CPlusPlus::Control. --- src/shared/cplusplus/CheckDeclaration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/cplusplus/CheckDeclaration.cpp') diff --git a/src/shared/cplusplus/CheckDeclaration.cpp b/src/shared/cplusplus/CheckDeclaration.cpp index 607fd75ef3..39a98f6c2f 100644 --- a/src/shared/cplusplus/CheckDeclaration.cpp +++ b/src/shared/cplusplus/CheckDeclaration.cpp @@ -437,7 +437,7 @@ bool CheckDeclaration::visit(ParameterDeclarationAST *ast) buffer += ' '; buffer += tk.spell(); } - const StringLiteral *initializer = control()->findOrInsertStringLiteral(buffer.c_str(), buffer.size()); + const StringLiteral *initializer = control()->stringLiteral(buffer.c_str(), buffer.size()); arg->setInitializer(initializer); } arg->setType(argTy); -- cgit v1.2.1