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++)
|
||||
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
|
||||
Category GetCategory(int catId);
|
||||
QString GetCategoryName(int catId);
|
||||
int GetCategoryId(const QString& catName) throw (CategoryNotFound);
|
||||
int GetCategoryId(const QString& catName) /*throw (CategoryNotFound)*/;
|
||||
const QFont GetCategoryFont(int catId);
|
||||
void AddCategory(const Category& cat);
|
||||
void UpdateCategory(const Category& cat);
|
||||
@@ -67,16 +67,16 @@ public:
|
||||
|
||||
Tag GetTag(int tagId);
|
||||
QString GetTagName(int tagId);
|
||||
int GetTagId(const QString& tagName) throw (TagNotFound);
|
||||
int GetTagId(const QString& tagName) /*throw (TagNotFound)*/;
|
||||
void AddTag(const Tag& tag);
|
||||
void UpdateTag(const Tag& tag);
|
||||
void DeleteTag(const Tag& tag);
|
||||
|
||||
|
||||
Account GetAccount(int accountId) throw (AccountNotFound);
|
||||
Account GetAccount(int accountId) /*throw (AccountNotFound)*/;
|
||||
QString GetAccountName(int accountId);
|
||||
int GetAccountId(const QString& accountName) throw (AccountNotFound);
|
||||
int GetAccountIdFromAccountNumber(const QString& accountNumber) throw (AccountNotFound);
|
||||
int GetAccountId(const QString& accountName) /*throw (AccountNotFound)*/;
|
||||
int GetAccountIdFromAccountNumber(const QString& accountNumber) /*throw (AccountNotFound)*/;
|
||||
void AddAccount(Account& ac);
|
||||
void UpdateAccount(Account& ac);
|
||||
void DeleteAccount(Account& ac);
|
||||
|
||||
Reference in New Issue
Block a user