[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/base/konq-plugins/microformat
From:       Pino Toscano <pino () kde ! org>
Date:       2008-02-29 22:19:46
Message-ID: 1204323586.803814.17065.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 780752 by pino:

const&


 M  +6 -6      konqmficon.cpp  
 M  +3 -3      konqmficon.h  


--- trunk/extragear/base/konq-plugins/microformat/konqmficon.cpp #780751:780752
@@ -69,7 +69,7 @@
 }
 
 
-static QString textForNode(DOM::Node node) {
+static QString textForNode(const DOM::Node &node) {
 	QString rc;
 	DOM::NodeList nl = node.childNodes();
 	for (unsigned int i = 0; i < nl.length(); ++i) {
@@ -83,7 +83,7 @@
 }
 
 
-static QString textForNodeRec(DOM::Node node) {
+static QString textForNodeRec(const DOM::Node &node) {
 	QString rc;
 	DOM::NodeList nl = node.childNodes();
 	for (unsigned int i = 0; i < nl.length(); ++i) {
@@ -99,7 +99,7 @@
 }
 
 
-static QString extractAddress(DOM::Node node) {
+static QString extractAddress(const DOM::Node &node) {
 	QString rc = ";;";
 	QMap<QString,QString> entry;
 	DOM::NodeList nodes = node.childNodes();
@@ -129,7 +129,7 @@
 }
 
 
-void KonqMFIcon::extractCard(DOM::Node node) {
+void KonqMFIcon::extractCard(const DOM::Node &node) {
 	QString name, value;
 	DOM::NodeList nodes = node.childNodes();
 	unsigned int n = nodes.length();
@@ -179,7 +179,7 @@
 }
 
 
-void KonqMFIcon::extractEvent(DOM::Node node) {
+void KonqMFIcon::extractEvent(const DOM::Node &node) {
 	QString name, value = "BEGIN:VCALENDAR\nPRODID:-//Konqueror//EN\nVERSION:2.0\nBEGIN:VEVENT\n";
 	DOM::NodeList nodes = node.childNodes();
 	unsigned int n = nodes.length();
@@ -224,7 +224,7 @@
 }
 
 
-bool KonqMFIcon::hasMicroFormat(DOM::NodeList nodes) {
+bool KonqMFIcon::hasMicroFormat(const DOM::NodeList &nodes) {
 	bool ok = false;
 	unsigned int n = nodes.length();
 	for (unsigned int i = 0; i < n; ++i) {
--- trunk/extragear/base/konq-plugins/microformat/konqmficon.h #780751:780752
@@ -50,9 +50,9 @@
 
 	private:
 		bool mfFound();
-		bool hasMicroFormat(DOM::NodeList nodes);
-		void extractCard(DOM::Node node);
-		void extractEvent(DOM::Node node);
+		bool hasMicroFormat(const DOM::NodeList &nodes);
+		void extractCard(const DOM::Node &node);
+		void extractEvent(const DOM::Node &node);
 		void addMF(int id);
 
 		QPointer<KHTMLPart> m_part;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic