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 2007/08/30 23:17:47 UTC
svn commit: r571313 - /xalan/c/trunk/src/xalanc/XPath/XObject.hpp
Author: dbertoni
Date: Thu Aug 30 14:17:47 2007
New Revision: 571313
URL: http://svn.apache.org/viewvc?rev=571313&view=rev
Log:
Fix for Jira issue XALANC-655.
Modified:
xalan/c/trunk/src/xalanc/XPath/XObject.hpp
Modified: xalan/c/trunk/src/xalanc/XPath/XObject.hpp
URL: http://svn.apache.org/viewvc/xalan/c/trunk/src/xalanc/XPath/XObject.hpp?rev=571313&r1=571312&r2=571313&view=diff
==============================================================================
--- xalan/c/trunk/src/xalanc/XPath/XObject.hpp (original)
+++ xalan/c/trunk/src/xalanc/XPath/XObject.hpp Thu Aug 30 14:17:47 2007
@@ -322,19 +322,41 @@
/**
* Static conversion function.
*
- * @return The string value of the number
+ * @return The string value of the boolean
*/
static const XalanDOMString&
- string(bool theBool)
+ string(bool theBool)
{
return theBool == true ? s_trueString : s_falseString;
}
+ /**
+ * Static conversion function.
+ *
+ * @param theBool The boolean value to convert.
+ * @param theString The string value of the provided boolean value.
+ */
+ static void
+ string(
+ bool theBool,
+ XalanDOMString& theString)
+ {
+ theString = theBool == true ? s_trueString : s_falseString;
+ }
+
+ /**
+ * Static conversion function. Calls the supplied FormatterListener
+ * member function with the string value of the boolean.
+ *
+ * @param theBool The boolean value to convert.
+ * @param formatterListener The FormatterListener instance.
+ * @param function The FormatterListener member function to call.
+ */
static void
string(
- bool theBool,
- FormatterListener& formatterListener,
- MemberFunctionPtr function)
+ bool theBool,
+ FormatterListener& formatterListener,
+ MemberFunctionPtr function)
{
if(theBool == true)
{
@@ -353,8 +375,8 @@
*/
static void
string(
- double theNumber,
- XalanDOMString& theString)
+ double theNumber,
+ XalanDOMString& theString)
{
DoubleToDOMString(theNumber, theString);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org