diff --git a/Applications/DataExplorer/DataView/StationTreeModel.cpp b/Applications/DataExplorer/DataView/StationTreeModel.cpp index 0b8b4d27b1d222c67f367a698d4ac698b90e8ac0..36e4f2474fde2f13b5da064dd373af5ad1d509af 100644 --- a/Applications/DataExplorer/DataView/StationTreeModel.cpp +++ b/Applications/DataExplorer/DataView/StationTreeModel.cpp @@ -102,7 +102,7 @@ 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 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); }); diff --git a/Applications/DataExplorer/DataView/StationTreeModel.h b/Applications/DataExplorer/DataView/StationTreeModel.h index ed6eab23a3531f66cdda6498297e203b5b4643b4..de78aa234d53b90aa27fe0a5ba75b0f871e9160f 100644 --- a/Applications/DataExplorer/DataView/StationTreeModel.h +++ b/Applications/DataExplorer/DataView/StationTreeModel.h @@ -53,7 +53,7 @@ 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 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;