From fc1cc254f58157e6b99ef14f97462f9047d2cb86 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Wed, 22 Jun 2016 05:59:15 +0200 Subject: [PATCH] [A/DE/DV] clang format. --- .../DataExplorer/DataView/StationTreeModel.cpp | 10 +++++++--- Applications/DataExplorer/DataView/StationTreeModel.h | 3 ++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Applications/DataExplorer/DataView/StationTreeModel.cpp b/Applications/DataExplorer/DataView/StationTreeModel.cpp index 36e4f2474fd..e7e472d92e5 100644 --- a/Applications/DataExplorer/DataView/StationTreeModel.cpp +++ b/Applications/DataExplorer/DataView/StationTreeModel.cpp @@ -102,10 +102,14 @@ vtkPolyDataAlgorithm* StationTreeModel::vtkSource(const std::string &name) const return nullptr; } -void StationTreeModel::setNameForItem(const std::string &stn_vec_name, std::size_t id, std::string const& item_name) +void StationTreeModel::setNameForItem(const std::string& stn_vec_name, + std::size_t id, + std::string const& 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); }); + auto const stn_list = find_if( + _lists.begin(), _lists.end(), [&stn_vec_name](ModelTreeItem* item) { + return (stn_vec_name == item->data(0).toString().toStdString()); + }); if (id >= (*stn_list)->childCount()) return; diff --git a/Applications/DataExplorer/DataView/StationTreeModel.h b/Applications/DataExplorer/DataView/StationTreeModel.h index de78aa234d5..98294a1fa75 100644 --- a/Applications/DataExplorer/DataView/StationTreeModel.h +++ b/Applications/DataExplorer/DataView/StationTreeModel.h @@ -53,7 +53,8 @@ public: //BaseItem* itemFromIndex( const QModelIndex& index ) const; void removeStationList(QModelIndex index); void removeStationList(const std::string &name); - void setNameForItem(const std::string &stn_vec_name, std::size_t id, std::string const& item_name); + void setNameForItem(const std::string& stn_vec_name, std::size_t id, + std::string const& item_name); GeoLib::Station* stationFromIndex( const QModelIndex& index, QString &listName ) const; vtkPolyDataAlgorithm* vtkSource(const std::string &name) const; -- GitLab