dbertoni 01/07/07 23:49:50
Modified: c/src/PlatformSupport DOMStringHelper.hpp
Log:
A few minor changes...
Revision Changes Path
1.46 +2 -9 xml-xalan/c/src/PlatformSupport/DOMStringHelper.hpp
Index: DOMStringHelper.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/DOMStringHelper.hpp,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- DOMStringHelper.hpp 2001/06/25 20:08:52 1.45
+++ DOMStringHelper.hpp 2001/07/08 06:49:49 1.46
@@ -352,7 +352,7 @@
inline bool
isEmpty(const XalanDOMString& str)
{
- return length(str) == 0 ? true : false;
+ return str.empty();
}
@@ -430,14 +430,7 @@
const XalanDOMString& theString,
XalanDOMChar theChar)
{
- if (theString.length() == 0)
- {
- return 0;
- }
- else
- {
- return indexOf(c_wstr(theString), theChar);
- }
+ return length(theString) == 0 ? 0 : indexOf(c_wstr(theString), theChar);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]