tng 2002/08/21 11:54:52 Modified: c/src/xercesc/framework XMLBuffer.hpp XMLBufferMgr.hpp Log: [Bug 11869] Add the const modifier (XMLBuffer.hpp). Revision Changes Path 1.2 +17 -14 xml-xerces/c/src/xercesc/framework/XMLBuffer.hpp Index: XMLBuffer.hpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/XMLBuffer.hpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- XMLBuffer.hpp 1 Feb 2002 22:21:51 -0000 1.1 +++ XMLBuffer.hpp 21 Aug 2002 18:54:52 -0000 1.2 @@ -1,37 +1,37 @@ /* * The Apache Software License, Version 1.1 - * + * * Copyright (c) 1999-2000 The Apache Software Foundation. All rights * reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * + * notice, this list of conditions and the following disclaimer. + * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * + * * 3. The end-user documentation included with the redistribution, - * if any, must include the following acknowledgment: + * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. - * + * * 4. The names "Xerces" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this - * software without prior written permission. For written + * software without prior written permission. For written * permission, please contact apache\@apache.org. - * + * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. - * + * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE @@ -45,7 +45,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== - * + * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation, and was * originally based on software copyright (c) 1999, International @@ -56,8 +56,11 @@ /* * $Log$ - * Revision 1.1 2002/02/01 22:21:51 peiyongz - * Initial revision + * Revision 1.2 2002/08/21 18:54:52 tng + * [Bug 11869] Add the const modifier (XMLBuffer.hpp). + * + * Revision 1.1.1.1 2002/02/01 22:21:51 peiyongz + * sane_include * * Revision 1.6 2001/06/27 20:29:09 tng * [Bug 2365] Huge performance problem with the parser in XMLScanner::sendCharData() . By David Bertoni. @@ -178,7 +181,7 @@ // ----------------------------------------------------------------------- // Getters // ----------------------------------------------------------------------- - bool getInUse() + bool getInUse() const { return fUsed; } @@ -188,7 +191,7 @@ return fIndex; } - bool isEmpty() + bool isEmpty() const { return (fIndex == 0); } 1.2 +16 -13 xml-xerces/c/src/xercesc/framework/XMLBufferMgr.hpp Index: XMLBufferMgr.hpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/XMLBufferMgr.hpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- XMLBufferMgr.hpp 1 Feb 2002 22:21:51 -0000 1.1 +++ XMLBufferMgr.hpp 21 Aug 2002 18:54:52 -0000 1.2 @@ -1,37 +1,37 @@ /* * The Apache Software License, Version 1.1 - * + * * Copyright (c) 1999-2000 The Apache Software Foundation. All rights * reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * + * notice, this list of conditions and the following disclaimer. + * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * + * * 3. The end-user documentation included with the redistribution, - * if any, must include the following acknowledgment: + * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. - * + * * 4. The names "Xerces" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this - * software without prior written permission. For written + * software without prior written permission. For written * permission, please contact apache\@apache.org. - * + * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. - * + * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE @@ -45,7 +45,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== - * + * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation, and was * originally based on software copyright (c) 1999, International @@ -56,8 +56,11 @@ /* * $Log$ - * Revision 1.1 2002/02/01 22:21:51 peiyongz - * Initial revision + * Revision 1.2 2002/08/21 18:54:52 tng + * [Bug 11869] Add the const modifier (XMLBuffer.hpp). + * + * Revision 1.1.1.1 2002/02/01 22:21:51 peiyongz + * sane_include * * Revision 1.5 2000/03/02 19:54:24 roddey * This checkin includes many changes done while waiting for the @@ -204,7 +207,7 @@ return fBuffer.fIndex; } - bool isEmpty() + bool isEmpty() const { return (fBuffer.fIndex == 0); }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]