(file) Return to XmlReader.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/XmlReader.cpp between version 1.111 and 1.112

version 1.111, 2005/03/15 05:41:45 version 1.112, 2005/03/28 09:42:51
Line 34 
Line 34 
 //              Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com) //              Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com)
 //              Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) //              Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
 //              Sean Keenan, Hewlett-Packard Company (sean.keenan@hp.com) //              Sean Keenan, Hewlett-Packard Company (sean.keenan@hp.com)
   //              Josephine Eskaline Joyce, IBM (jojustin@in.ibm.com) for Bug#3103
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
 #include <Pegasus/Common/Config.h> #include <Pegasus/Common/Config.h>
Line 59 
Line 60 
 #endif #endif
 // l10n // l10n
 #include <Pegasus/Common/MessageLoader.h> #include <Pegasus/Common/MessageLoader.h>
   #include <Pegasus/Common/AutoPtr.h>
  
 #define PEGASUS_SINT64_MIN (PEGASUS_SINT64_LITERAL(0x8000000000000000)) #define PEGASUS_SINT64_MIN (PEGASUS_SINT64_LITERAL(0x8000000000000000))
 #define PEGASUS_UINT64_MAX PEGASUS_UINT64_LITERAL(0xFFFFFFFFFFFFFFFF) #define PEGASUS_UINT64_MAX PEGASUS_UINT64_LITERAL(0xFFFFFFFFFFFFFFFF)
Line 1600 
Line 1602 
  
             // First we need to create a new "temporary" XmlParser that is             // First we need to create a new "temporary" XmlParser that is
             // just the value of the Embedded Object in String representation.             // just the value of the Embedded Object in String representation.
             char* tmp_buffer = new char[strlen(valueString) + 1];              AutoArrayPtr<char> tmp_buffer(new char[strlen(valueString) + 1]);
             strcpy(tmp_buffer, valueString);              strcpy(tmp_buffer.get(), valueString);
             XmlParser tmp_parser(tmp_buffer);              XmlParser tmp_parser(tmp_buffer.get());
  
             // The next bit of logic constructs a CIMObject from the Embedded Object String.             // The next bit of logic constructs a CIMObject from the Embedded Object String.
             // It is similar to the method XmlReader::getValueObjectElement().             // It is similar to the method XmlReader::getValueObjectElement().
Line 1631 
Line 1633 
  
             }             }
             // Ok, now we can delete the storage for the temporary XmlParser.             // Ok, now we can delete the storage for the temporary XmlParser.
             delete [] tmp_buffer;              tmp_buffer.reset();
         }         }
         return CIMValue(x);         return CIMValue(x);
     }     }


Legend:
Removed from v.1.111  
changed lines
  Added in v.1.112

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2