dbertoni    2002/09/06 10:27:59

  Modified:    c/src/XSLT DecimalToRoman.hpp
  Log:
  Make it a POD.
  
  Revision  Changes    Path
  1.5       +4 -25     xml-xalan/c/src/XSLT/DecimalToRoman.hpp
  
  Index: DecimalToRoman.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/DecimalToRoman.hpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DecimalToRoman.hpp        6 Sep 2002 06:09:38 -0000       1.4
  +++ DecimalToRoman.hpp        6 Sep 2002 17:27:59 -0000       1.5
  @@ -71,38 +71,17 @@
   /**
    * Structure to help in converting integers to roman numerals
    */
  -class XALAN_XSLT_EXPORT DecimalToRoman 
  +struct XALAN_XSLT_EXPORT DecimalToRoman 
   {
  -public:
  -
  -     /**
  -      *  Construct a decimal to roman conversion object
  -      *
  -      * @param postValue  quantity corresponding to postLetter
  -      * @param postLetter letter for quantity, for example, "C" represents 100
  -      * @param preValue   quantity corresponding to preLetter                
  -      * @param preLetter  prefix for quantity, for example, "XC" represents 90
  -      */
  -     DecimalToRoman(
  -                     long                                    postValue,
  -                     const XalanDOMString&   postLetter, 
  -                     long                                    preValue,
  -                     const XalanDOMString&   preLetter);
  -
  -     DecimalToRoman();
  -
  -     ~DecimalToRoman();
  -
  -     void
  -     swap(DecimalToRoman&    theOther);
  +     enum { eMaxLetter = 2 };
   
        long                    m_postValue;
   
  -     XalanDOMString  m_postLetter;
  +     XalanDOMChar    m_postLetter[eMaxLetter + 1];
   
        long                    m_preValue;
   
  -     XalanDOMString  m_preLetter;
  +     XalanDOMChar    m_preLetter[eMaxLetter + 1];
   };
   
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to