X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fidentity.cpp;h=e2cd936bde15b496fefd9b9918f58d0ad0d1d9b3;hp=e31735a37b697d8d1a5f2595106814e94d40c33d;hb=3a3e844f9fcfd12235a0086af75ecd503b621ef4;hpb=9d54503555534a2c554f09a33df6afa33d6308ec diff --git a/src/common/identity.cpp b/src/common/identity.cpp index e31735a3..e2cd936b 100644 --- a/src/common/identity.cpp +++ b/src/common/identity.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -35,14 +35,13 @@ # include #endif -#ifdef Q_OS_WIN32 +#ifdef Q_OS_WIN # include # include # define SECURITY_WIN32 # include #endif -INIT_SYNCABLE_OBJECT(Identity) Identity::Identity(IdentityId id, QObject *parent) : SyncableObject(parent), _identityId(id) @@ -78,7 +77,7 @@ Identity::Identity(const Identity &other, QObject *parent) } -#ifdef Q_WS_WIN +#ifdef Q_OS_WIN #ifdef UNICODE QString tcharToQString(TCHAR *tchar) { @@ -120,7 +119,7 @@ QString Identity::defaultNick() if (!userName.isEmpty()) nick = userName; -#elif defined(Q_OS_WIN32) +#elif defined(Q_OS_WIN) TCHAR infoBuf[128]; DWORD bufCharCount = 128; //if(GetUserNameEx(/* NameSamCompatible */ 1, infoBuf, &bufCharCount)) @@ -159,7 +158,7 @@ QString Identity::defaultRealName() else return generalDefault; -#elif defined(Q_OS_WIN32) +#elif defined(Q_OS_WIN) TCHAR infoBuf[128]; DWORD bufCharCount = 128; if (GetUserName(infoBuf, &bufCharCount)) @@ -191,8 +190,8 @@ void Identity::setToDefaults() setDetachAwayReasonEnabled(false); setIdent("quassel"); setKickReason(tr("Kindergarten is elsewhere!")); - setPartReason(tr("http://quassel-irc.org - Chat comfortably. Anywhere.")); - setQuitReason(tr("http://quassel-irc.org - Chat comfortably. Anywhere.")); + setPartReason(tr("https://quassel-irc.org - Chat comfortably. Anywhere.")); + setQuitReason(tr("https://quassel-irc.org - Chat comfortably. Anywhere.")); } @@ -389,8 +388,3 @@ QDataStream &operator>>(QDataStream &in, Identity &id) id.fromVariantMap(i); return in; } - - -#ifdef HAVE_SSL -INIT_SYNCABLE_OBJECT(CertManager) -#endif // HAVE_SSL