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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Mon Nov 15 14:10:50 CST 2010


branch "master" has been updated
       via  9f66775b5f7c8b37cc1862774a77c33049a7a74e (commit)
      from  7395eabe3b4e9e99fa368617b173e0360e932b92 (commit)

Summary of changes:
 example/example.cpp |   60 +++++++++++++++++++++++++-------------------------
 1 files changed, 30 insertions(+), 30 deletions(-)


- Log -----------------------------------------------------------------
commit 9f66775b5f7c8b37cc1862774a77c33049a7a74e
Author: David M. Lee <dlee at digium.com>
Date:   Mon Nov 15 14:03:38 2010 -0600

    Updated indentation to match the style guide.

diff --git a/example/example.cpp b/example/example.cpp
index d46f92e..557cc39 100644
--- a/example/example.cpp
+++ b/example/example.cpp
@@ -8,43 +8,43 @@ namespace TimeMachine
 {
 namespace DeLorean
 {
-   /**
-    * Private class that implements the Singleton for model data.
-    */
-   class BackInTimeImpl : public BackInTime
-   {
-      virtual bool Jump(::Ice::Int day, ::Ice::Int month, ::Ice::Int year, ::Ice::Float speed, const Ice::Current &)
-      { 
-         if (speed >= 88)
-         {
+/**
+ * Private class that implements the Singleton for model data.
+ */
+class BackInTimeImpl : public BackInTime
+{
+    virtual bool Jump(::Ice::Int day, ::Ice::Int month, ::Ice::Int year, ::Ice::Float speed, const Ice::Current &)
+    {
+        if (speed >= 88)
+        {
             return true;
-         }
-         return false;
-      }
-   };
+        }
+        return false;
+    }
+};
 }
 }
 
 
 int main(int argc, char* argv[])
 {
-  BackInTimePtr ptr = new BackInTimeImpl(); 
-
-  if (argc < 2)
-  {
-     cout << "Usage: example <speed>" << endl;
-     exit(0);
-  }
-
-  float speed = (float)atof(argv[1]);
-  if (ptr->Jump(10, 7, 1955, speed))
-  {
-     cout << "Congrats! You are BACK in time!" << endl;
-  }
-  else
-  {
-     cout << "Sorry. Speed must be at least 88 MPH." << endl;
-  }
+    BackInTimePtr ptr = new BackInTimeImpl();
+
+    if (argc < 2)
+    {
+        cout << "Usage: example <speed>" << endl;
+        exit(0);
+    }
+
+    float speed = (float)atof(argv[1]);
+    if (ptr->Jump(10, 7, 1955, speed))
+    {
+        cout << "Congrats! You are BACK in time!" << endl;
+    }
+    else
+    {
+        cout << "Sorry. Speed must be at least 88 MPH." << endl;
+    }
 
 }
 

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


-- 
asterisk-scf/release/cmake.git



More information about the asterisk-scf-commits mailing list