gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r7463 - gnunet-qt/src/plugins/fs


From: gnunet
Subject: [GNUnet-SVN] r7463 - gnunet-qt/src/plugins/fs
Date: Sat, 19 Jul 2008 04:58:53 -0600 (MDT)

Author: durner
Date: 2008-07-19 04:58:53 -0600 (Sat, 19 Jul 2008)
New Revision: 7463

Modified:
   gnunet-qt/src/plugins/fs/ecrsuri.cc
Log:
fix toString()

Modified: gnunet-qt/src/plugins/fs/ecrsuri.cc
===================================================================
--- gnunet-qt/src/plugins/fs/ecrsuri.cc 2008-07-19 08:46:15 UTC (rev 7462)
+++ gnunet-qt/src/plugins/fs/ecrsuri.cc 2008-07-19 10:58:53 UTC (rev 7463)
@@ -67,9 +67,9 @@
 {
   if (ecrsUri)
     GNUNET_ECRS_uri_destroy(ecrsUri);
-    
+
   ecrsUri = GNUNET_ECRS_uri_duplicate(src.ecrsUri);
-  
+
   return *this;
 }
 
@@ -77,15 +77,15 @@
 {
   char *s1, *s2;
   bool ret;
-  
+
   s1 = GNUNET_ECRS_uri_to_string(ecrsUri);
   s2 = GNUNET_ECRS_uri_to_string(rvalue.ecrsUri);
-  
+
   ret = (strcmp(s1, s2) < 0);
-  
+
   GNUNET_free(s1);
   GNUNET_free(s2);
-  
+
   return ret;
 }
 
@@ -93,26 +93,26 @@
 {
   char *dhead, *desc;
   QString strRet;
-  
+
   if (!ecrsUri)
     return QString();
-  
+
   desc = GNUNET_ECRS_uri_to_string(ecrsUri);
   if (!desc)
     return QString();
-  
+
   GNUNETQT_ASSERT(strlen(desc) >= strlen(GNUNET_ECRS_URI_PREFIX));
-  
+
   dhead = desc + strlen(GNUNET_ECRS_URI_PREFIX);
   if (strncmp(dhead, GNUNET_ECRS_SEARCH_INFIX, 
strlen(GNUNET_ECRS_SEARCH_INFIX)) == 0)
     strRet = dhead + strlen(GNUNET_ECRS_SEARCH_INFIX);
-  else if (strncmp(dhead, GNUNET_ECRS_SUBSPACE_INFIX, 
strlen(GNUNET_ECRS_SUBSPACE_INFIX) == 0))
+  else if (strncmp(dhead, GNUNET_ECRS_SUBSPACE_INFIX, 
strlen(GNUNET_ECRS_SUBSPACE_INFIX)) == 0)
     strRet = dhead + strlen(GNUNET_ECRS_SUBSPACE_INFIX);
-  else if (strncmp(dhead, GNUNET_ECRS_FILE_INFIX, 
strlen(GNUNET_ECRS_FILE_INFIX) == 0))
+  else if (strncmp(dhead, GNUNET_ECRS_FILE_INFIX, 
strlen(GNUNET_ECRS_FILE_INFIX)) == 0)
     strRet = dhead + strlen(GNUNET_ECRS_FILE_INFIX);
 
   GNUNET_free(desc);
-    
+
   return strRet;
 }
 
@@ -133,18 +133,18 @@
 {
   char *str;
   QString ret;
-  
+
   if (!ecrsUri)
     return QString();
-  
+
   str = GNUNET_ECRS_uri_to_string(ecrsUri);
-  
+
   if (str)
   {
     ret = QString::fromLocal8Bit(str);
     GNUNET_free(str);
   }
-  
+
   return ret;
 }
 
@@ -157,9 +157,9 @@
 {
   if (ecrsUri)
     GNUNET_ECRS_uri_destroy(ecrsUri);
-    
+
   ecrsUri = GNUNET_ECRS_uri_duplicate(uri);
-  
+
   return *this;
 }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]