MP/Connect: move user_defined implementation out of header
This commit is contained in:
parent
387fa7458e
commit
bd819ced00
2 changed files with 8 additions and 6 deletions
|
@ -255,6 +255,13 @@ mp_connect::server_info& mp_connect::selection::get()
|
|||
return parent_list().at(relative_index());
|
||||
}
|
||||
|
||||
bool mp_connect::selection::user_defined() const
|
||||
{
|
||||
// An invalid selection is the same as one from the read-only list of
|
||||
// built-in servers for interaction purposes since it can't be written to.
|
||||
return valid() && std::size_t(row_) >= owner_->builtin_servers_.size();
|
||||
}
|
||||
|
||||
unsigned mp_connect::selection::row() const
|
||||
{
|
||||
must_be_valid();
|
||||
|
|
|
@ -76,12 +76,7 @@ private:
|
|||
return owner_ && row_ >= 0;
|
||||
}
|
||||
|
||||
bool user_defined() const
|
||||
{
|
||||
// An invalid selection is the same as one from the read-only list of
|
||||
// built-in servers for interaction purposes since it can't be written to.
|
||||
return valid() && std::size_t(row_) >= owner_->builtin_servers_.size();
|
||||
}
|
||||
bool user_defined() const;
|
||||
|
||||
unsigned row() const;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue