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

Diff for /pegasus/src/Pegasus/Common/XmlWriter.cpp between version 1.119 and 1.122

version 1.119, 2005/03/10 14:18:33 version 1.122, 2005/04/14 17:53:53
Line 201 
Line 201 
     {     {
         char charref[7];         char charref[7];
         sprintf(charref, "&#%u;", (Uint16)c);         sprintf(charref, "&#%u;", (Uint16)c);
         out.append(charref, strlen(charref));          out.append(charref, static_cast<Uint32>(strlen(charref)));
     }     }
     else     else
     {     {
Line 263 
Line 263 
     {     {
         char charref[7];         char charref[7];
         sprintf(charref, "&#%u;", (Uint8)c);         sprintf(charref, "&#%u;", (Uint8)c);
         out.append(charref, strlen(charref));          out.append(charref, static_cast<Uint32>(strlen(charref)));
     }     }
     else     else
     {     {
Line 290 
Line 290 
                 break;                 break;
  
             default:             default:
                 out.append(Sint8(c));                  out.append(static_cast<Sint8>(c));
         }         }
     }     }
 } }
Line 301 
Line 301 
     if ( ((c < 0x20) && (c >= 0)) || (c == 0x7f) )     if ( ((c < 0x20) && (c >= 0)) || (c == 0x7f) )
     {     {
         char charref[7];         char charref[7];
         sprintf(charref, "&#%u;", (Uint8)c);          sprintf(charref, "&#%u;", static_cast<Uint8>(c));
         os << charref;         os << charref;
     }     }
     else     else
Line 879 
Line 879 
  
 inline void _xmlWritter_appendValue(Array<char>& out, const CIMObject& x) inline void _xmlWritter_appendValue(Array<char>& out, const CIMObject& x)
 { {
     out << x.toString();      String myStr = x.toString();
       _xmlWritter_appendValue(out, myStr);
 } }
  
 void _xmlWritter_appendValueArray(Array<char>& out, const CIMObjectPath* p, Uint32 size) void _xmlWritter_appendValueArray(Array<char>& out, const CIMObjectPath* p, Uint32 size)
Line 1800 
Line 1801 
      HttpMethod httpMethod,      HttpMethod httpMethod,
      const ContentLanguages & contentLanguages,      const ContentLanguages & contentLanguages,
      Uint32 contentLength,      Uint32 contentLength,
      Uint64 serverResponseTime)       Uint32 serverResponseTime)
 { {
      char nn[] = { '0' + (rand() % 10), '0' + (rand() % 10), '\0' };      char nn[] = { '0' + (rand() % 10), '0' + (rand() % 10), '\0' };
      out << "HTTP/1.1 " HTTP_STATUS_OK "\r\n";      out << "HTTP/1.1 " HTTP_STATUS_OK "\r\n";
Line 2551 
Line 2552 
     HttpMethod httpMethod,     HttpMethod httpMethod,
     const ContentLanguages & httpContentLanguages,     const ContentLanguages & httpContentLanguages,
     const Array<char>& body,     const Array<char>& body,
                 Uint64 serverResponseTime,                  Uint32 serverResponseTime,
                 Boolean isFirst,                 Boolean isFirst,
                 Boolean isLast)                 Boolean isLast)
 { {
Line 2674 
Line 2675 
     HttpMethod httpMethod,     HttpMethod httpMethod,
     const ContentLanguages & httpContentLanguages,     const ContentLanguages & httpContentLanguages,
     const Array<char>& body,     const Array<char>& body,
                 Uint64 serverResponseTime,      Uint32 serverResponseTime,
                 Boolean isFirst,                 Boolean isFirst,
                 Boolean isLast)                 Boolean isLast)
 { {


Legend:
Removed from v.1.119  
changed lines
  Added in v.1.122

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2