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 2008/03/19 18:36:27 UTC
svn commit: r638947 - /xalan/c/trunk/src/xalanc/XPath/XObject.cpp
Author: dbertoni
Date: Wed Mar 19 10:36:23 2008
New Revision: 638947
URL: http://svn.apache.org/viewvc?rev=638947&view=rev
Log:
Removed dummy return values after throw statements to clean up HP compiler warnings.
Modified:
xalan/c/trunk/src/xalanc/XPath/XObject.cpp
Modified: xalan/c/trunk/src/xalanc/XPath/XObject.cpp
URL: http://svn.apache.org/viewvc/xalan/c/trunk/src/xalanc/XPath/XObject.cpp?rev=638947&r1=638946&r2=638947&view=diff
==============================================================================
--- xalan/c/trunk/src/xalanc/XPath/XObject.cpp (original)
+++ xalan/c/trunk/src/xalanc/XPath/XObject.cpp Wed Mar 19 10:36:23 2008
@@ -284,9 +284,6 @@
XObject::num() const
{
throw XObjectInvalidConversionException(getType(), eTypeNumber);
-
- // This is just a dummy value to satisfy the compiler.
- return 0.0;
}
@@ -295,9 +292,6 @@
XObject::boolean() const
{
throw XObjectInvalidConversionException(getType(), eTypeBoolean);
-
- // This is just a dummy value to satisfy the compiler.
- return false;
}
@@ -335,21 +329,10 @@
-static int foo = 0;
-
const XalanDocumentFragment&
XObject::rtree() const
{
-
-
throw XObjectInvalidConversionException(getType(), eTypeResultTreeFrag);
-
- // This is just a dummy value to satisfy the compiler.
-#if defined(XALAN_OLD_STYLE_CASTS)
- return (const XalanDocumentFragment&)foo;
-#else
- return reinterpret_cast<const XalanDocumentFragment&>(foo);
-#endif
}
@@ -362,10 +345,6 @@
XObject::nodeset() const
{
throw XObjectInvalidConversionException(getType(), eTypeNodeSet);
-
- // error will throw, so this is just a dummy
- // value to satisfy the compiler.
- return s_dummyList;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org