You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ca...@apache.org on 2006/07/08 03:52:25 UTC

svn commit: r420031 - /xerces/c/trunk/src/xercesc/framework/psvi/XSValue.cpp

Author: cargilld
Date: Fri Jul  7 18:52:24 2006
New Revision: 420031

URL: http://svn.apache.org/viewvc?rev=420031&view=rev
Log:
Remove some unnecessary catch blocks.

Modified:
    xerces/c/trunk/src/xercesc/framework/psvi/XSValue.cpp

Modified: xerces/c/trunk/src/xercesc/framework/psvi/XSValue.cpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/framework/psvi/XSValue.cpp?rev=420031&r1=420030&r2=420031&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/framework/psvi/XSValue.cpp (original)
+++ xerces/c/trunk/src/xercesc/framework/psvi/XSValue.cpp Fri Jul  7 18:52:24 2006
@@ -634,10 +634,6 @@
         } // end switch
         return true;  //both valid chars and within boundary
     }
-    catch(const OutOfMemoryException&)
-    {
-        throw;
-    }
     catch (const NumberFormatException&)
     {
         //getActValue()/getCanonical() need to know the failure details
@@ -700,10 +696,6 @@
         status = checkTimeZoneError(datatype, e)? XSValue::st_FODT0003 : st_FOCA0002;
         return false;
     }
-    catch(const OutOfMemoryException&)
-    {
-        throw;
-    }
     catch (const NumberFormatException&)
     {
         //getActValue()/getCanonical() need to know the failure details
@@ -721,9 +713,7 @@
 {
     bool isValid = true;
     
-    try
-    {
-        switch (datatype) { 
+    switch (datatype) { 
         case XSValue::dt_boolean:
             {
                 unsigned int i = 0;
@@ -999,14 +989,9 @@
             status = st_NotSupported;
             isValid = false;        
             break;
-        }
-
-    }
-    catch(const OutOfMemoryException&)
-    {
-        throw;
     }
 
+
     if (isValid == false && status == st_Init) {
         status = st_FOCA0002;
     }
@@ -1096,10 +1081,6 @@
             return retVal;
         }
     }
-    catch(const OutOfMemoryException&)
-    {
-        throw;
-    }
     catch (const NumberFormatException&)
     {
         status = st_FOCA0002;
@@ -1156,10 +1137,6 @@
             break;
         }
     }
-    catch(const OutOfMemoryException&)
-    {
-        throw;
-    }
     catch (SchemaDateTimeException &e)
     {
         status = checkTimeZoneError(datatype, e)? XSValue::st_FODT0003 : st_FOCA0002;
@@ -1178,9 +1155,7 @@
                                ,       bool                 toValidate
                                ,       MemoryManager* const manager)
 {
-    try
-    {
-        switch (datatype) {        
+    switch (datatype) {        
         case XSValue::dt_boolean:
             {
             XMLCh* tmpStrValue = XMLString::replicate(content, manager);
@@ -1254,11 +1229,6 @@
         default:
             return 0;
             break;
-        }
-    }
-    catch(const OutOfMemoryException&)
-    {
-        throw;
     }
 
     return 0;
@@ -1443,10 +1413,6 @@
             break;        
         } // end switch
     }
-    catch(const OutOfMemoryException&)
-    {
-        throw;
-    }
     catch (const NumberFormatException&)
     {
         status = st_FOCA0002;
@@ -1537,11 +1503,6 @@
 
         return retVal;
     }
-
-    catch(const OutOfMemoryException&)
-    {
-        throw;
-    }
     catch (SchemaDateTimeException const &e)
     {
         status = checkTimeZoneError(datatype, e)? XSValue::st_FODT0003 : st_FOCA0002;
@@ -1562,9 +1523,7 @@
                         ,       bool                 toValidate
                         ,       MemoryManager* const manager)
 {
-    try
-    {
-        switch (datatype) { 
+    switch (datatype) { 
         case XSValue::dt_boolean: 
             {
             XMLCh* tmpStrValue = XMLString::replicate(content, manager);
@@ -1655,11 +1614,6 @@
         default:
             return 0;
             break;
-        }
-    }
-    catch(const OutOfMemoryException&)
-    {
-        throw;
     }
 
     return 0; 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org