Skip to content

Commit

Permalink
some typos #22
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Jan 19, 2024
1 parent 4d58bca commit fca9ac2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/netedit/GNEViewNet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ GNEViewNet::openObjectDialogAtCursor(const FXEvent* /*ev*/) {
}
}
} else if (TLS) {
// filter all elements except TLLogi
// filter all elements except TLLogic
while (it != filteredGLObjects.end()) {
if ((*it)->getType() != GLO_TLLOGIC) {
it = filteredGLObjects.erase(it);
Expand Down
6 changes: 3 additions & 3 deletions src/utils/gui/windows/GUISUMOAbstractView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ GUISUMOAbstractView::getObjectsInBoundary(Boundary bound) {


std::vector<GUIGlObject*>
GUISUMOAbstractView::filterInernalLanes(const std::vector<GUIGlObject*>& objects) const {
GUISUMOAbstractView::filterInternalLanes(const std::vector<GUIGlObject*>& objects) const {
// count number of internal lanes
size_t internalLanes = 0;
for (const auto& object : objects) {
Expand Down Expand Up @@ -1245,7 +1245,7 @@ GUISUMOAbstractView::openObjectDialogAtCursor(const FXEvent* ev) {
filteredObjectsUnderCursor.push_back(GLObject);
}
// filter internal lanes
filteredObjectsUnderCursor = filterInernalLanes(filteredObjectsUnderCursor);
filteredObjectsUnderCursor = filterInternalLanes(filteredObjectsUnderCursor);
// remove duplicated elements using an unordered set
auto itDuplicated = filteredObjectsUnderCursor.begin();
std::unordered_set<GUIGlObject*> unorderedSet;
Expand Down Expand Up @@ -1289,7 +1289,7 @@ GUISUMOAbstractView::openObjectDialog(const std::vector<GUIGlObject*>& objects,
std::vector<GUIGlObject*> filteredGLObjects;
// fill filtered objects
for (const auto& glObject : objects) {
// compare type with first eleement type
// compare type with first element type
if (glObject->getType() == objects.front()->getType()) {
filteredGLObjects.push_back(glObject);
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/gui/windows/GUISUMOAbstractView.h
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ class GUISUMOAbstractView : public FXGLCanvas {
std::vector<GUIGlID> getObjectsInBoundary(Boundary bound);

/// @brief filter internal lanes in Objects under cursor
std::vector<GUIGlObject*> filterInernalLanes(const std::vector<GUIGlObject*>& objects) const;
std::vector<GUIGlObject*> filterInternalLanes(const std::vector<GUIGlObject*>& objects) const;

/// @brief invokes the tooltip for the given object
bool showToolTipFor(const GUIGlID idToolTip);
Expand Down

0 comments on commit fca9ac2

Please sign in to comment.