Remove some warnings

This commit is contained in:
2018-05-07 14:21:19 +02:00
parent 9133973148
commit eba1057656
5 changed files with 16 additions and 19 deletions

View File

@@ -97,7 +97,7 @@ QString User::GetCategoryName(int catId)
return _("Unknown") ;
}
int User::GetCategoryId(const QString& catName) throw (CategoryNotFound)
int User::GetCategoryId(const QString& catName) /*throw (CategoryNotFound)*/
{
std::vector<Category>::iterator it;
Category cat;
@@ -185,7 +185,7 @@ QString User::GetTagName(int tagId)
return _("Unknown") ;
}
int User::GetTagId(const QString& tagName) throw (TagNotFound)
int User::GetTagId(const QString& tagName) /*throw (TagNotFound)*/
{
std::vector<Tag>::iterator it;
Tag tag;
@@ -226,7 +226,7 @@ void User::DeleteTag(const Tag& tag)
}
}
Account User::GetAccount(int accountId) throw (AccountNotFound)
Account User::GetAccount(int accountId) /*throw (AccountNotFound)*/
{
std::vector<Account>::iterator it = std::find(_accounts.begin(), _accounts.end(), accountId);
@@ -245,7 +245,7 @@ QString User::GetAccountName(int accountId)
return _("Unknown") ;
}
int User::GetAccountId(const QString& accountName) throw (AccountNotFound)
int User::GetAccountId(const QString& accountName) /*throw (AccountNotFound)*/
{
std::vector<Account>::iterator it;
for (it=_accounts.begin(); it !=_accounts.end(); it++)
@@ -255,7 +255,7 @@ int User::GetAccountId(const QString& accountName) throw (AccountNotFound)
throw AccountNotFound();
}
int User::GetAccountIdFromAccountNumber(const QString& accountNumber) throw (AccountNotFound)
int User::GetAccountIdFromAccountNumber(const QString& accountNumber) /*throw (AccountNotFound)*/
{
std::vector<Account>::iterator it;
for (it=_accounts.begin(); it !=_accounts.end(); it++)