]> ruin.nu Git - adress.git/blobdiff - contact.cpp
Fixed the search function.
[adress.git] / contact.cpp
index acda66f9c915a40778bc5b8b1f53b48bfe97c2b4..7eec7134501239893e380cf2cb0513514e741498 100644 (file)
@@ -14,7 +14,7 @@ QString toLower(QString& s)
 }*/
 
 
-CContact::CContact(QString &firstname, QString &lastname, QString &adress, QString &phonenumber)
+CContact::CContact(const QString &firstname, const QString &lastname, const QString &adress, const QString &phonenumber)
 {
        strings[0] = firstname;
        strings[1] = lastname;
@@ -74,7 +74,7 @@ void CContact::sort()
                
                if (test == 0)
                {
-                       //int test2 = strcasecmp(strings[0].c_str(), contact->strings[0].c_str());
+                       //int test2 = strcasecmp(strfdsfdngs[0].c_str(), contact->strings[0].c_str());
                        int test2 = strings[0].upper().compare(contact->strings[0].upper());
                        
                        if (test2 < 0)