X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FAccount.cpp;h=a42e2f70e8cf76e7857586d974e8756a19e838ae;hb=51203b531b2054a8a7c40356e2108a5ec7b9f366;hp=a087158dc0b16f2d686af8fe7aeaf6e38a43e4cd;hpb=e2cad9c4ba05196efe03ab2fed8e51bafda53759;p=lugaru.git diff --git a/Source/Account.cpp b/Source/Account.cpp index a087158..a42e2f7 100644 --- a/Source/Account.cpp +++ b/Source/Account.cpp @@ -4,20 +4,18 @@ Copyright (C) 2010 - Côme BERNIGAUD This file is part of Lugaru. -Lugaru 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. +Lugaru 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. -This program is distributed in the hope that it will be useful, +Lugaru is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -See the GNU General Public License for more details. +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +along with Lugaru. If not, see . */ #include "Account.h" @@ -59,7 +57,7 @@ Account* Account::add(string name) Account* Account::get(int i) { - if ((i >= 0) && (i < accounts.size())) { + if ((i >= 0) && (i < int(accounts.size()))) { return accounts[i]; } else return NULL;