Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/xalanc/XPath/XString.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class XALAN_XPATH_EXPORT XString : public XStringBase
set(const XalanDOMString& theString)
{
m_value = theString;
ClearCachedNumber();
}

// These methods are inherited from XObject ...
Expand Down
5 changes: 5 additions & 0 deletions src/xalanc/XPath/XStringBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ XStringBase::str() const
theBuffer);
}

void
XStringBase::ClearCachedNumber()
{
m_cachedNumberValue = 0.0;
}


}
3 changes: 3 additions & 0 deletions src/xalanc/XPath/XStringBase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ class XALAN_XPATH_EXPORT XStringBase : public XObject
virtual void
ProcessXObjectTypeCallback(XObjectTypeCallback& theCallbackObject) const;

virtual void
ClearCachedNumber();

private:

friend class XObjectResultTreeFragProxyText;
Expand Down