X-Git-Url: https://ruin.nu/git/?p=adress.git;a=blobdiff_plain;f=contact.cpp;h=7eec7134501239893e380cf2cb0513514e741498;hp=acda66f9c915a40778bc5b8b1f53b48bfe97c2b4;hb=d5ab42bc1239fdd6ae46c17a4c698935e19eb745;hpb=e2721b2f5b828bf44923e249832c298972e8413f diff --git a/contact.cpp b/contact.cpp index acda66f..7eec713 100644 --- a/contact.cpp +++ b/contact.cpp @@ -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)