From 94e8847d674388c3c8ac663fa4912bb8029b2951 Mon Sep 17 00:00:00 2001 From: "D. Shah" Date: Thu, 28 Jan 2021 15:19:06 +0000 Subject: cleanup: Spelling fixes Signed-off-by: D. Shah --- gui/fpgaviewwidget.cc | 4 ++-- gui/lineshader.cc | 4 ++-- gui/quadtree.h | 8 ++++---- gui/treemodel.h | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'gui') diff --git a/gui/fpgaviewwidget.cc b/gui/fpgaviewwidget.cc index 43d73a92..67ab80fd 100644 --- a/gui/fpgaviewwidget.cc +++ b/gui/fpgaviewwidget.cc @@ -158,7 +158,7 @@ float FPGAViewWidget::PickedElement::distance(Context *ctx, float wx, float wy) return std::abs(dw - dab) / dab; } default: - // Not close to antyhing. + // Not close to anything. return -1; } }); @@ -819,7 +819,7 @@ QVector4D FPGAViewWidget::mouseToWorldCoordinates(int x, int y) vec = projection.inverted() * QVector4D(vec.x(), vec.y(), -1, 1); // Hic sunt dracones. - // TODO(q3k): grab a book, remind yourselfl linear algebra and undo this + // TODO(q3k): grab a book, remind yourself linear algebra and undo this // operation properly. QVector3D ray = vec.toVector3DAffine(); ray.normalize(); diff --git a/gui/lineshader.cc b/gui/lineshader.cc index eded1689..4175dcec 100644 --- a/gui/lineshader.cc +++ b/gui/lineshader.cc @@ -26,7 +26,7 @@ void PolyLine::buildPoint(LineShaderData *building, const QVector2D *prev, const const QVector2D *next) const { // buildPoint emits two vertices per line point, along with normals to move - // them the right directio when rendering and miter to compensate for + // them the right direction when rendering and miter to compensate for // bends. if (cur == nullptr) { @@ -104,7 +104,7 @@ void PolyLine::build(LineShaderData &target) const // For every point on the line, call buildPoint with (prev, point, next). // If we're building a closed line, prev/next wrap around. Otherwise - // they are passed as nullptr and buildPoint interprets that accordinglu. + // they are passed as nullptr and buildPoint interprets that accordingly. const QVector2D *prev = nullptr; // Loop iterator used to ensure next is valid. diff --git a/gui/quadtree.h b/gui/quadtree.h index a6c38a85..5bbd2ebb 100644 --- a/gui/quadtree.h +++ b/gui/quadtree.h @@ -20,7 +20,7 @@ #ifndef QUADTREE_H #define QUADTREE_H -// This file implements a quad tree used for comitting 2D axis aligned +// This file implements a quad tree used for committing 2D axis aligned // bounding boxes and then retrieving them by 2D point. NEXTPNR_NAMESPACE_BEGIN @@ -382,17 +382,17 @@ template class QuadTree // Standard constructor. // - // @param b Bounding box of the entire tree - all comitted elements must + // @param b Bounding box of the entire tree - all committed elements must // fit within in. QuadTree(BoundingBox b) : root_(b, 0) {} // Inserts a new value at a given bounding box.e // BoundingBoxes are not deduplicated - if two are pushed with the same - // coordinates, the first one will take precendence. + // coordinates, the first one will take precedence. // // @param k Bounding box at which to store value. // @param v Value at a given bounding box. - // @returns Whether the insert was succesful. + // @returns Whether the insert was successful. bool insert(BoundingBox k, ElementT v) { k.fixup(); diff --git a/gui/treemodel.h b/gui/treemodel.h index d7f337a3..49168a91 100644 --- a/gui/treemodel.h +++ b/gui/treemodel.h @@ -145,7 +145,7 @@ class IdStringList : public Item ElementType child_type_; public: - // Create an IdStringList at given partent that will contain elements of + // Create an IdStringList at given parent that will contain elements of // the given type. IdStringList(ElementType type) : Item("root", nullptr), child_type_(type) {} -- cgit v1.2.3