X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fsqlitestorage.cpp;h=0ccb43deb8326b66cc1bd67a7c0ce68863472fed;hb=b3402ef6dd801ffb14b1d0227469d832dd7f574e;hp=fcb0700d506ebcbedb81364996ef74db42f572cb;hpb=97d674034551438238c568e8b42efb08e1ba7354;p=quassel.git diff --git a/src/core/sqlitestorage.cpp b/src/core/sqlitestorage.cpp index fcb0700d..0ccb43de 100644 --- a/src/core/sqlitestorage.cpp +++ b/src/core/sqlitestorage.cpp @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (C) 2005-07 by The Quassel Team * + * Copyright (C) 2005-07 by the Quassel IRC Team * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * + * (at your option) version 3. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * @@ -67,7 +67,7 @@ bool SqliteStorage::setup(const QVariantMap &settings) { { logDb = QSqlDatabase::addDatabase("QSQLITE", "quassel_setup"); logDb.setDatabaseName(SqliteStorage::backlogFile(true)); - bool ok = logDb.open(); + ok = logDb.open(); if (!ok) { qWarning(tr("Could not open backlog database: %1").arg(logDb.lastError().text()).toAscii()); @@ -521,7 +521,7 @@ QList SqliteStorage::requestMsgRange(BufferInfo buffer, int first, int QString SqliteStorage::backlogFile(bool createPath) { // kinda ugly, but I currently see no other way to do that -#ifdef _WINDOWS +#ifdef Q_OS_WIN32 QString quasselDir = QDir::homePath() + qgetenv("APPDATA") + "\\quassel\\"; #else QString quasselDir = QDir::homePath() + "/.quassel/";