svn commit: r943386 - /xalan/c/trunk/src/xalanc/Include/XalanMemMgrAutoPtr.hpp

[email protected] Wed, 12 May 2010 06:01:13 -0000
Newsgroups gmane.text.xml.xalan.cvs
Message-ID <[email protected]>
Author: dbertoni
Date: Wed May 12 06:01:13 2010
New Revision: 943386

URL: http://svn.apache.org/viewvc?rev=943386&view=rev
Log:
Use default constructor for compatibility with VS2010. Fixed a few typos. Fixes XALANC-699.

Modified:
    xalan/c/trunk/src/xalanc/Include/XalanMemMgrAutoPtr.hpp

Modified: xalan/c/trunk/src/xalanc/Include/XalanMemMgrAutoPtr.hpp
URL: http://svn.apache.org/viewvc/xalan/c/trunk/src/xalanc/Include/XalanMemMgrAutoPtr.hpp?rev=943386&r1=943385&r2=943386&view=diff
==============================================================================
--- xalan/c/trunk/src/xalanc/Include/XalanMemMgrAutoPtr.hpp (original)
+++ xalan/c/trunk/src/xalanc/Include/XalanMemMgrAutoPtr.hpp Wed May 12 06:01:13 2010
@@ -42,7 +42,7 @@ XALAN_CPP_NAMESPACE_BEGIN
 XALAN_USING_XERCES(MemoryManager)
 
 // An auto_ptr-like class that supports the MemoryManager class.
-template<class   Type>
+template<class Type>
 class XalanMemMgrAutoPtr
 {
 public:
@@ -54,7 +54,7 @@ public:
     public:
 
         MemMgrAutoPtrData():
-            AutoPtrPairType(0,0)
+            AutoPtrPairType()
         {
         }
 
@@ -67,7 +67,7 @@ public:
         }
 
         bool
-        isInitilized()const
+        isInitialized()const
         {
             return this->first != 0 && this->second != 0;
         }
@@ -77,7 +77,7 @@ public:
         {
             invariants();
 
-            if (isInitilized())
+            if (isInitialized())
             {       
                 this->second->~Type();
 
@@ -105,7 +105,7 @@ public:
         invariants() const
         {
             assert(
-                isInitilized() ||
+                isInitialized() ||
                 (this->first == 0 && this->second == 0));
         }
     };