You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2002/01/04 02:59:08 UTC

cvs commit: xml-xalan/c/src/XSLT XSLTInputSource.cpp XSLTInputSource.hpp

dbertoni    02/01/03 17:59:08

  Modified:    c/src/XSLT XSLTInputSource.cpp XSLTInputSource.hpp
  Log:
  Work-around for latest Solaris compiler.
  
  Revision  Changes    Path
  1.12      +32 -0     xml-xalan/c/src/XSLT/XSLTInputSource.cpp
  
  Index: XSLTInputSource.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/XSLTInputSource.cpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- XSLTInputSource.cpp	6 Jun 2001 21:53:30 -0000	1.11
  +++ XSLTInputSource.cpp	4 Jan 2002 01:59:08 -0000	1.12
  @@ -86,6 +86,38 @@
   
   
   
  +#if defined(XALAN_IMPLICIT_CONSTRUCTION_REQUIRES_COPY_CONSTRUCTOR)
  +XSLTInputSource::XSLTInputSource(const XSLTInputSource&		theSource) :
  +	InputSource(),
  +	m_stream(theSource.m_stream),
  +	m_node(theSource.m_node)
  +{
  +	setIssueFatalErrorIfNotFound(theSource.getIssueFatalErrorIfNotFound());
  +
  +	const XMLCh*	theValue = theSource.getSystemId();
  +
  +	if (theValue != 0)
  +	{
  +		setSystemId(theValue);
  +	}
  +
  +	theValue = theSource.getPublicId();
  +
  +	if (theValue != 0)
  +	{
  +		setPublicId(theValue);
  +	}
  +
  +	theValue = theSource.getEncoding();
  +
  +	if (theValue != 0)
  +	{
  +		setEncoding(theValue);
  +	}
  +}
  +#endif
  +
  +
   
   XSLTInputSource::XSLTInputSource(const XMLCh*	systemId) :
   	InputSource(systemId),
  
  
  
  1.12      +6 -0      xml-xalan/c/src/XSLT/XSLTInputSource.hpp
  
  Index: XSLTInputSource.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/XSLTInputSource.hpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- XSLTInputSource.hpp	13 Dec 2001 18:01:28 -0000	1.11
  +++ XSLTInputSource.hpp	4 Jan 2002 01:59:08 -0000	1.12
  @@ -93,6 +93,10 @@
   	explicit
   	XSLTInputSource();
   
  +#if defined(XALAN_IMPLICIT_CONSTRUCTION_REQUIRES_COPY_CONSTRUCTOR)
  +	XSLTInputSource(const XSLTInputSource&);
  +#endif
  +
   	/**
   	 * Create a new input source with a system identifier.
   	 *
  @@ -226,8 +230,10 @@
   
   private:
   
  +#if !defined(XALAN_IMPLICIT_CONSTRUCTION_REQUIRES_COPY_CONSTRUCTOR)
   	// Not implemented...
   	XSLTInputSource(const XSLTInputSource&);
  +#endif
   
   	void
   	operator=(const XSLTInputSource&);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org