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

Diff for /pegasus/src/Pegasus/Common/CIMObjectPath.cpp between version 1.58.4.4 and 1.63

version 1.58.4.4, 2008/02/19 22:09:39 version 1.63, 2007/10/23 17:38:45
Line 690 
Line 690 
              */              */
             type = CIMKeyBinding::STRING;             type = CIMKeyBinding::STRING;
  
             /* Performance shortcut will check for  
                equal sign instead of doing the full  
                CIMObjectPath creation and exception handling  
             */  
             keyValueUTF8.append('\0');  
             if (strchr((const char*)keyValueUTF8.getData(), '='))  
             {  
                 // found an equal sign, high probability for a reference  
                 try                 try
                 {                 {
                     CIMObjectPath testForPath(valueString);                     CIMObjectPath testForPath(valueString);
Line 712 
Line 704 
                     // Not a reference value; leave type as STRING                     // Not a reference value; leave type as STRING
                 }                 }
             }             }
         }  
         else if (toupper(*p) == 'T' || toupper(*p) == 'F')         else if (toupper(*p) == 'T' || toupper(*p) == 'F')
         {         {
             type = CIMKeyBinding::BOOLEAN;             type = CIMKeyBinding::BOOLEAN;
Line 1062 
Line 1053 
 Boolean CIMObjectPath::identical(const CIMObjectPath& x) const Boolean CIMObjectPath::identical(const CIMObjectPath& x) const
 { {
     return     return
         String::equalNoCase(_rep->_host, x._rep->_host) &&          (_rep == x._rep) ||
           (String::equalNoCase(_rep->_host, x._rep->_host) &&
         _rep->_nameSpace.equal(x._rep->_nameSpace) &&         _rep->_nameSpace.equal(x._rep->_nameSpace) &&
         _rep->_className.equal(x._rep->_className) &&         _rep->_className.equal(x._rep->_className) &&
         _rep->_keyBindings == x._rep->_keyBindings;           (_rep->_keyBindings == x._rep->_keyBindings));
 } }
  
 Uint32 CIMObjectPath::makeHashCode() const Uint32 CIMObjectPath::makeHashCode() const


Legend:
Removed from v.1.58.4.4  
changed lines
  Added in v.1.63

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2