[sword-cvs] sword/include url.h,1.1,1.2

sword at www.crosswire.org sword at www.crosswire.org
Thu Jul 8 12:30:45 MST 2004


Committed by: joachim

Update of /cvs/core/sword/include
In directory www:/tmp/cvs-serv5599/include

Modified Files:
	url.h 
Log Message:
fixed url return values and parameters

Index: url.h
===================================================================
RCS file: /cvs/core/sword/include/url.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- url.h	6 Jul 2004 20:07:13 -0000	1.1
+++ url.h	8 Jul 2004 19:30:42 -0000	1.2
@@ -40,15 +40,15 @@
 	/** Get the protocol.
 	* @return The protocol, e.g. "http" for an url like "http://www.crosswire.org/index.jsp?page=help"
 	*/
-	const SWBuf&  getProtocol() const;
+	const char* const  getProtocol() const;
 	/** Get the hostname
 	* @return The hostname, e.g. "www.crosswire.org" for an url like "http://www.crosswire.org/index.jsp?page=help"
 	*/
-	const SWBuf&  getHostName() const;
+	const char* const  getHostName() const;
 	/** Get the path
 	* @return The path, e.g. "/index.jsp" for an url like "http://www.crosswire.org/index.jsp?page=help"
 	*/
-	const SWBuf&  getPath() const;
+	const char* const  getPath() const;
 	
 	/** All available paramters
 	* @return The map which contains the parameters and their values
@@ -61,7 +61,7 @@
 	 * @param name The name of the paramter.
 	 * @return The value of the given paramter of an empty string if the name could not be found in the list of available paramters
 	 */
-	const SWBuf getParamterValue (const SWBuf& name);
+	const char* const getParamterValue (const char* const name);
 		
 private:
 	/** Parse



More information about the sword-cvs mailing list