Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding/changing names of stations #1273

Merged
merged 3 commits into from
Jun 21, 2016
Merged

Conversation

rinkk
Copy link
Member

@rinkk rinkk commented Jun 20, 2016

...as requested for the GW tutorial book.

@ogsbot
Copy link
Member

ogsbot commented Jun 20, 2016

Jenkins: OGS-6/Win-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Win-PRs/2011/

void StationTreeModel::setNameForItem(const std::string &stn_vec_name, std::size_t id, std::string item_name)
{
auto const stn_list = find_if(_lists.begin(), _lists.end(), [&stn_vec_name](ModelTreeItem* item)
{ return (stn_vec_name.compare( item->data(0).toString().toStdString() ) == 0); });
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: You can compare for equality using ==.

@chleh
Copy link
Collaborator

chleh commented Jun 20, 2016

after questions answered 👍

@endJunction
Copy link
Member

Looks OK. Const correctness can be improved.

@ogsbot
Copy link
Member

ogsbot commented Jun 21, 2016

Jenkins: OGS-6/Gui/Win-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Gui/job/Win-PRs/2019/

@rinkk rinkk merged commit 832fa6f into ufz:master Jun 21, 2016
@ogsbot
Copy link
Member

ogsbot commented Jun 21, 2016

Jenkins: OGS-6/Linux-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs/2187/

@ogsbot
Copy link
Member

ogsbot commented Jun 21, 2016

Jenkins: OGS-6/Linux-PRs-dynamic failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs-dynamic/411/

@rinkk rinkk deleted the ModifyStationNames branch October 15, 2018 13:02
@ogsbot
Copy link
Member

ogsbot commented Jun 19, 2020

OpenGeoSys development has been moved to GitLab.

See this pull request on GitLab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants