diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2006-08-04 07:53:56 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2006-08-04 07:53:56 +0000 |
commit | 0d189c79a2d3be98e176987e6aca15fd2c618ef0 (patch) | |
tree | 6cf35974cd1384c7826bec323b26fd79fd0566aa /src/dal | |
parent | aa4de5dfa66533be42478ec2526307a46e1fc9c6 (diff) | |
download | manaserv-0d189c79a2d3be98e176987e6aca15fd2c618ef0.tar.gz manaserv-0d189c79a2d3be98e176987e6aca15fd2c618ef0.tar.bz2 manaserv-0d189c79a2d3be98e176987e6aca15fd2c618ef0.tar.xz manaserv-0d189c79a2d3be98e176987e6aca15fd2c618ef0.zip |
Strengthened checks for already existing character name or email address.
Diffstat (limited to 'src/dal')
-rw-r--r-- | src/dal/recordset.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/dal/recordset.cpp b/src/dal/recordset.cpp index 6b2211ea..20bf2f12 100644 --- a/src/dal/recordset.cpp +++ b/src/dal/recordset.cpp @@ -141,11 +141,6 @@ const std::string& RecordSet::operator()(const unsigned int row, const unsigned int col) const { - if (mHeaders.size() == 0) { - throw std::invalid_argument( - "nothing to return as the recordset is empty."); - } - if ((row >= mRows.size()) || (col >= mHeaders.size())) { std::ostringstream os; os << "(" << row << ", " << col << ") is out of range; " @@ -166,11 +161,6 @@ const std::string& RecordSet::operator()(const unsigned int row, const std::string& name) const { - if (mHeaders.size() == 0) { - throw std::invalid_argument( - "nothing to return as the recordset is empty."); - } - if (row >= mRows.size()) { std::ostringstream os; os << "row " << row << " is out of range; " |