[asterisk-scf-commits] asterisk-scf/release/ice.git branch "visitor-generators" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed Jan 5 16:29:08 UTC 2011


branch "visitor-generators" has been updated
       via  1fda4bed82b4de606f2b114758f875131234712c (commit)
      from  fb92fe1f171cca24438b3f0db3e0f999bd160923 (commit)

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


- Log -----------------------------------------------------------------
commit 1fda4bed82b4de606f2b114758f875131234712c
Author: Kevin P. Fleming <kpfleming at digium.com>
Date:   Wed Jan 5 10:28:41 2011 -0600

    Use named references for start-bracket and end-bracket like the rest of
    the generater code does.

diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 1e2d458..4361215 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -4901,13 +4901,13 @@ Slice::Gen::ObjectVisitor::visitGeneratedOperation(const GeneratedOperationPtr&
         H << ";";
 
         StringList body = p->body();
-        C << sp;
-        C << nl << retS << nl << scoped << paramsDecl << nl << "{" << nl;
+        C << nl << retS << nl << scoped << paramsDecl;
+        C << sb;
         for(StringList::const_iterator it = body.begin(); it != body.end(); it++)
         {
-            C << *it << nl;
+            C << nl << *it;
         }
-        C << "}";
+        C << eb;
     }
     else
     {

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


-- 
asterisk-scf/release/ice.git



More information about the asterisk-scf-commits mailing list