Remove some warnings
This commit is contained in:
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user