You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2008/09/19 10:53:48 UTC

svn commit: r696992 [1/3] - in /xerces/c/trunk: samples/src/SEnumVal/SEnumVal.cpp src/xercesc/util/MsgLoaders/Win32/Version.rc tools/NLS/Xlat/Xlat_Win32RC.cpp

Author: amassari
Date: Fri Sep 19 01:53:47 2008
New Revision: 696992

URL: http://svn.apache.org/viewvc?rev=696992&view=rev
Log:
Fix errors in VC6; generate string resources without the leading L" and final \x00

Modified:
    xerces/c/trunk/samples/src/SEnumVal/SEnumVal.cpp
    xerces/c/trunk/src/xercesc/util/MsgLoaders/Win32/Version.rc
    xerces/c/trunk/tools/NLS/Xlat/Xlat_Win32RC.cpp

Modified: xerces/c/trunk/samples/src/SEnumVal/SEnumVal.cpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/samples/src/SEnumVal/SEnumVal.cpp?rev=696992&r1=696991&r2=696992&view=diff
==============================================================================
--- xerces/c/trunk/samples/src/SEnumVal/SEnumVal.cpp (original)
+++ xerces/c/trunk/samples/src/SEnumVal/SEnumVal.cpp Fri Sep 19 01:53:47 2008
@@ -437,7 +437,7 @@
         // Element's properties
         XERCES_STD_QUALIFIER cout << "Facets:\t\t\n";
         // use a list to print them sorted, or the list could be different on 64-bit machines
-        RefVectorOf<const XMLCh> sortedList(facets->getCount(), false);
+        RefVectorOf<XMLCh> sortedList(facets->getCount(), false);
         RefHashTableOfEnumerator<KVStringPair> enumFacets(facets);
         while( enumFacets.hasMoreElements() )
         {
@@ -447,11 +447,11 @@
             for(i=0;i<len;i++)
                 if(XMLString::compareString(key, sortedList.elementAt(i))<0)
                 {
-                    sortedList.insertElementAt(key,i);
+                    sortedList.insertElementAt((XMLCh*)key,i);
                     break;
                 }
             if(i==len)
-                sortedList.addElement(key);
+                sortedList.addElement((XMLCh*)key);
         }
 
         XMLSize_t len=sortedList.size();



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