[asterisk-scf-commits] asterisk-scf/release/slice-plugins.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Fri Apr 15 16:43:17 CDT 2011


branch "master" has been updated
       via  3bab1e4316559aae55381cd6804c5dc78cdcae12 (commit)
      from  19de6a7af6358362a4a56d76a6d966048cf5bd88 (commit)

Summary of changes:
 src/SliceVisitorPattern.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 3bab1e4316559aae55381cd6804c5dc78cdcae12
Author: Kevin P. Fleming <kpfleming at digium.com>
Date:   Fri Apr 15 16:42:16 2011 -0500

    When adding parameters to the base class visit<foo> operations, don't give
    them names, as the operations won't have any body and this will result in
    'unused parameter' warnings.

diff --git a/src/SliceVisitorPattern.cpp b/src/SliceVisitorPattern.cpp
index 36e9b7b..ff6c838 100644
--- a/src/SliceVisitorPattern.cpp
+++ b/src/SliceVisitorPattern.cpp
@@ -194,7 +194,7 @@ VisitorPatternVisitor::visitClassDefStart(const ClassDefPtr& p)
 				if(derivedVisitor->includeLevel() == 0)
 				{
 					GeneratedOperationPtr gop = derivedVisitor->createGeneratedOperation("visit" + p->name(), 0, generateEmptyFunctionBody());
-					gop->createParamDecl("item", p->declaration(), false);
+					gop->createParamDecl("", p->declaration(), false);
 				}
 				// There is no need to actually generate operations into the visited
 				// class if it was defined in an include file, since the translator
@@ -237,7 +237,7 @@ VisitorPatternVisitor::visitClassDefStart(const ClassDefPtr& p)
 		if(derivedVisitor->includeLevel() == 0)
 		{
 			GeneratedOperationPtr gop = derivedVisitor->createGeneratedOperation("visit" + p->name(), 0, generateEmptyFunctionBody());
-			gop->createParamDecl("item", p->declaration(), false);
+			gop->createParamDecl("", p->declaration(), false);
 		}
 		if(p->includeLevel() == 0)
 		{

-----------------------------------------------------------------------


-- 
asterisk-scf/release/slice-plugins.git



More information about the asterisk-scf-commits mailing list