Remove std:: from size_t in list.*

This commit is contained in:
Thomas Goyne 2016-01-26 12:05:27 -08:00
parent 356c17ba11
commit 62d573c1d9
2 changed files with 9 additions and 9 deletions

View File

@ -39,14 +39,14 @@ size_t List::size()
return m_link_view->size();
}
Row List::get(std::size_t row_ndx)
Row List::get(size_t row_ndx)
{
verify_attached();
verify_valid_row(row_ndx);
return m_link_view->get(row_ndx);
}
void List::set(std::size_t row_ndx, std::size_t target_row_ndx)
void List::set(size_t row_ndx, size_t target_row_ndx)
{
verify_attached();
verify_in_tranaction();
@ -54,14 +54,14 @@ void List::set(std::size_t row_ndx, std::size_t target_row_ndx)
m_link_view->set(row_ndx, target_row_ndx);
}
void List::add(std::size_t target_row_ndx)
void List::add(size_t target_row_ndx)
{
verify_attached();
verify_in_tranaction();
m_link_view->add(target_row_ndx);
}
void List::insert(std::size_t row_ndx, std::size_t target_row_ndx)
void List::insert(size_t row_ndx, size_t target_row_ndx)
{
verify_attached();
verify_in_tranaction();
@ -69,7 +69,7 @@ void List::insert(std::size_t row_ndx, std::size_t target_row_ndx)
m_link_view->insert(row_ndx, target_row_ndx);
}
void List::remove(std::size_t row_ndx)
void List::remove(size_t row_ndx)
{
verify_attached();
verify_in_tranaction();
@ -83,7 +83,7 @@ Query List::get_query()
return m_link_view->get_target_table().where(m_link_view);
}
void List::verify_valid_row(std::size_t row_ndx, bool insertion)
void List::verify_valid_row(size_t row_ndx, bool insertion)
{
size_t size = m_link_view->size();
if (row_ndx > size || (!insertion && row_ndx == size)) {

View File

@ -36,8 +36,8 @@ public:
const std::shared_ptr<Realm>& realm() { return m_realm; }
size_t size();
Row get(std::size_t row_ndx);
void set(std::size_t row_ndx, std::size_t target_row_ndx);
Row get(size_t row_ndx);
void set(size_t row_ndx, size_t target_row_ndx);
void add(size_t target_row_ndx);
void remove(size_t list_ndx);
@ -54,7 +54,7 @@ public:
Query get_query();
void verify_valid_row(std::size_t row_ndx, bool insertion = false);
void verify_valid_row(size_t row_ndx, bool insertion = false);
void verify_attached();
void verify_in_tranaction();