trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r942500 - /trafficserver/traffic/trunk/libinktomi++/Allocator.h
Date Sun, 09 May 2010 07:18:24 GMT
Author: mturk
Date: Sun May  9 07:18:23 2010
New Revision: 942500

URL: http://svn.apache.org/viewvc?rev=942500&view=rev
Log:
Fix code style. Those are not 'and' operators

Modified:
    trafficserver/traffic/trunk/libinktomi++/Allocator.h

Modified: trafficserver/traffic/trunk/libinktomi++/Allocator.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/libinktomi%2B%2B/Allocator.h?rev=942500&r1=942499&r2=942500&view=diff
==============================================================================
--- trafficserver/traffic/trunk/libinktomi++/Allocator.h (original)
+++ trafficserver/traffic/trunk/libinktomi++/Allocator.h Sun May  9 07:18:23 2010
@@ -108,7 +108,7 @@ public:
   /** Allocates objects of the templated type. */
   C * alloc();
 
-  /** 
+  /**
     Deallocates objects of the templated type.
 
     @param ptr pointer to be freed.
@@ -116,7 +116,7 @@ public:
   */
   void free(C * ptr);
 
-  /** 
+  /**
     Allocate objects of the templated type via the inherited interface
     using void pointers.
 
@@ -126,7 +126,7 @@ public:
     return (void *) alloc();
   }
 
-  /** 
+  /**
     Deallocate objects of the templated type via the inherited
     interface using void pointers.
 
@@ -268,7 +268,7 @@ template<class C> inline C * ClassAlloca
 #endif
   if (sizeof(C) < 512) {
     for (unsigned int i = 0; i < RND16(sizeof(C)) / sizeof(ink64); i++)
-      ((ink64 *) ptr)[i] = ((ink64 *) & this->proto.typeObject)[i];
+      ((ink64 *) ptr)[i] = ((ink64 *) &this->proto.typeObject)[i];
   } else
     memcpy(ptr, &this->proto.typeObject, sizeof(C));
   return (C *) ptr;
@@ -284,11 +284,11 @@ template<class C> inline C * SparceClass
   if (!instantiate) {
     if (sizeof(C) < 512) {
       for (unsigned int i = 0; i < RND16(sizeof(C)) / sizeof(ink64); i++)
-        ((ink64 *) ptr)[i] = ((ink64 *) & this->proto.typeObject)[i];
+        ((ink64 *) ptr)[i] = ((ink64 *) &this->proto.typeObject)[i];
     } else
       memcpy(ptr, &this->proto.typeObject, sizeof(C));
   } else
-    (*instantiate) ((C *) & this->proto.typeObject, (C *) ptr);
+    (*instantiate) ((C *) &this->proto.typeObject, (C *) ptr);
   return (C *) ptr;
 }
 
@@ -319,7 +319,7 @@ template<class C> inline C * SparceClass
   if (instantiate == NULL)
     memcpy(ptr, &this->proto.typeObject, sizeof(C));
   else
-    (*instantiate) ((C *) & this->proto.typeObject, (C *) ptr);
+    (*instantiate) ((C *) &this->proto.typeObject, (C *) ptr);
 
   return (C *) ptr;
 }



Mime
View raw message