Skip to content

Adding/changing names of stations #1273

Merged
rinkk merged 3 commits intoufz:masterfrom
rinkk:ModifyStationNames
Jun 21, 2016
Merged

Adding/changing names of stations #1273
rinkk merged 3 commits intoufz:masterfrom
rinkk:ModifyStationNames

Conversation

@rinkk
Copy link
Copy Markdown
Member

@rinkk rinkk commented Jun 20, 2016

...as requested for the GW tutorial book.

@ogsbot
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator

chleh commented Jun 20, 2016

after questions answered 👍

@endJunction
Copy link
Copy Markdown
Member

Looks OK. Const correctness can be improved.

@rinkk rinkk force-pushed the ModifyStationNames branch from c3f39da to c4034e7 Compare June 21, 2016 11:58
@ogsbot
Copy link
Copy Markdown
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 force-pushed the ModifyStationNames branch from 7c9b316 to e622007 Compare June 21, 2016 14:30
@rinkk rinkk merged commit 832fa6f into ufz:master Jun 21, 2016
@ogsbot
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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