vec.cc: Conform to C++STYLE.
authorJonathan Wakely <redi@gcc.gnu.org>
Sat, 8 Nov 2003 00:36:13 +0000 (00:36 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sat, 8 Nov 2003 00:36:13 +0000 (00:36 +0000)
2003-11-07  Jonathan Wakely  <redi@gcc.gnu.org>

* libsupc++/vec.cc: Conform to C++STYLE.

From-SVN: r73350

libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/vec.cc

index d0c46d0042176bd5d8d1422f46477916a9e09eaf..e5658be7a05f3061220b44bf8656302b5105beb6 100644 (file)
@@ -1,3 +1,7 @@
+2003-11-07  Jonathan Wakely  <redi@gcc.gnu.org>
+
+       * libsupc++/vec.cc: Conform to C++STYLE.
+
 2003-11-07  Carlo Wood  <carlo@alinoe.com>
 
        PR libstdc++/12736
index 2725593ff530a6d181bd8c06ce1c42986ba79ab1..908fe9978dee3e3c15f644f6d90751e8c763636f 100644 (file)
@@ -282,12 +282,10 @@ namespace __cxxabiv1
                    void (*destructor) (void *),
                    void (*dealloc) (void *))
   {
-    char *base;
-  
     if (!array_address)
       return;
 
-    base = static_cast<char *>(array_address);
+    char* base = static_cast<char *>(array_address);
   
     if (padding_size)
       {
@@ -317,15 +315,12 @@ namespace __cxxabiv1
                     void (*destructor) (void *),
                    void (*dealloc) (void *, std::size_t))
   {
-    char *base;
-    std::size_t size;
-    
     if (!array_address)
       return;
 
-    base = static_cast <char *> (array_address);
-    size = 0;
-    
+    char* base = static_cast <char *> (array_address);
+    std::size_t size = 0;
+
     if (padding_size)
       {
        std::size_t element_count = reinterpret_cast<std::size_t *> (base)[-1];