Skip to content

Commit f1e9c42

Browse files
committed
Fix typos in comments and documentation
All of them were found by codespell. Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 3ad4384 commit f1e9c42

24 files changed

+29
-29
lines changed

FileNameDisambiguator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ FileNameDisambiguator::Impl::registerFile(QString const& file_path)
246246
ItemsByFileNameLabel::iterator const fn_it(
247247
m_itemsByFileNameLabel.upper_bound(boost::make_tuple(file_name))
248248
);
249-
// If the item preceeding fn_it has the same file name,
249+
// If the item preceding fn_it has the same file name,
250250
// the new file belongs to the same disambiguation group.
251251
if (fn_it != m_itemsByFileNameLabel.begin()) {
252252
ItemsByFileNameLabel::iterator prev(fn_it);

ImageMetadataLoader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ImageMetadataLoader : public RefCountable
3535
LOADED, /**< Loaded successfully */
3636
NO_IMAGES, /**< File contained no images. */
3737
FORMAT_NOT_RECOGNIZED, /**< File format not recognized. */
38-
GENERIC_ERROR /**< Some other error has occured. */
38+
GENERIC_ERROR /**< Some other error has occurred. */
3939
};
4040

4141
/**

ImageTransformation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class ImageTransformation
9595
/**
9696
* \brief Get the target DPI for pre-scaling.
9797
*
98-
* Note that if the original DPI was assymetric, pre-scaling to
98+
* Note that if the original DPI was asymmetric, pre-scaling to
9999
* a symmetric DPI will be applied implicitly.
100100
*/
101101
Dpi const& preScaledDpi() const { return m_preScaledDpi; }

ImageViewBase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class ImageViewBase : public QAbstractScrollArea
173173
* \brief Set the focal point in widget coordinates, after adjustring
174174
* it to avoid wasting of widget space.
175175
*
176-
* This one may be used for resticted dragging (the default one in ST).
176+
* This one may be used for restricted dragging (the default one in ST).
177177
*
178178
* \see getWidgetFocalPoint()
179179
* \see setWidgetFocalPoint()

PageId.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class PageId
3838

3939
/**
4040
* \note The default parameter for subpage is not arbitrary. It has to
41-
* preceed other values in terms of operator<(). That's necessary
41+
* precede other values in terms of operator<(). That's necessary
4242
* to be able to use lower_bound() to find the first page with
4343
* a matching image id.
4444
*/

RelinkingListView.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ RelinkingListView::drawStatusLayer(QPainter* painter)
113113
}
114114

115115
if (top_index.row() > 0) {
116-
// The appearence of any element actually depends on its neighbours,
116+
// The appearance of any element actually depends on its neighbours,
117117
// so we start with the element above our topmost visible one.
118118
top_index = top_index.sibling(top_index.row() - 1, 0);
119119
}
@@ -136,7 +136,7 @@ RelinkingListView::drawStatusLayer(QPainter* painter)
136136

137137
if (row != top_index.row() && !item_rect.intersects(drawing_rect)) {
138138
// Note that we intentionally break *after* processing
139-
// the first invisible item. That's because the appearence
139+
// the first invisible item. That's because the appearance
140140
// of its immediate predecessor depends on it. The topmost item
141141
// is allowed to be invisible, as it's processed for the same reason,
142142
// that is to make its immediate neighbour to display correctly.

SmartFilenameOrdering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,6 @@ SmartFilenameOrdering::operator()(QFileInfo const& lhs, QFileInfo const& rhs) co
7777

7878
// OK, the smart comparison indicates the file names are equal.
7979
// However, if they aren't symbol-to-symbol equal, we can't treat
80-
// them as equal, so let's do a usual comparision now.
80+
// them as equal, so let's do a usual comparison now.
8181
return lhs_fname < rhs_fname;
8282
}

ThumbnailSequence.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ ThumbnailSequence::Impl::itemInsertPosition(
12951295
ItemsInOrder::iterator ins_pos(hint);
12961296
int dist = 0;
12971297

1298-
// While the element immediately preceeding ins_pos is supposed to
1298+
// While the element immediately preceding ins_pos is supposed to
12991299
// follow the page we are inserting, move ins_pos one element back.
13001300
while (ins_pos != begin) {
13011301
ItemsInOrder::iterator prev(ins_pos);

ThumbnailSequence.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class ThumbnailSequence : public QObject
6565
* selected items exist. In this case, the leader will become unselected, and
6666
* one of the other selected items will be promoted to a selection leader.
6767
* In these circumstances, scrolling to make the new selection leader visible
68-
* is undesireable.
68+
* is undesirable.
6969
*/
7070
AVOID_SCROLLING_TO = 1 << 2
7171
};
@@ -101,7 +101,7 @@ class ThumbnailSequence : public QObject
101101
PageSequence toPageSequence() const;
102102

103103
/**
104-
* \brief Updates appearence and possibly position of a thumbnail.
104+
* \brief Updates appearance and possibly position of a thumbnail.
105105
*
106106
* If thumbnail's size or position have changed and this thumbnail
107107
* is a selection leader, newSelectionLeader() signal will be emitted
@@ -122,7 +122,7 @@ class ThumbnailSequence : public QObject
122122
void invalidateThumbnail(PageInfo const& page_info);
123123

124124
/**
125-
* \brief Updates appearence of all thumbnails and possibly their order.
125+
* \brief Updates appearance of all thumbnails and possibly their order.
126126
*
127127
* Whether or not order will be updated depends on whether an order provider
128128
* was specified by the most recent reset() call.
@@ -152,7 +152,7 @@ class ThumbnailSequence : public QObject
152152
* \brief Returns the page immediately following the given one.
153153
*
154154
* A null PageInfo is returned if the given page wasn't found or
155-
* there are no pages preceeding it.
155+
* there are no pages preceding it.
156156
*/
157157
PageInfo prevPage(PageId const& reference_page) const;
158158

compat/pstdint.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
* include stdint.h. The hope is that one or the other can be
7575
* used with no real difference.
7676
*
77-
* 5) In the current verison, if your platform can't represent
77+
* 5) In the current version, if your platform can't represent
7878
* int32_t, int16_t and int8_t, it just dumps out with a compiler
7979
* error.
8080
*

crash_reporter/google-breakpad/google_breakpad/common/minidump_exception_solaris.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ typedef enum {
6969
MD_EXCEPTION_CODE_SOL_SIGPWR = 19, /* power-fail restart */
7070
MD_EXCEPTION_CODE_SOL_SIGWINCH = 20, /* window size change */
7171
MD_EXCEPTION_CODE_SOL_SIGURG = 21, /* urgent socket condition */
72-
MD_EXCEPTION_CODE_SOL_SIGPOLL = 22, /* pollable event occured */
72+
MD_EXCEPTION_CODE_SOL_SIGPOLL = 22, /* pollable event occurred */
7373
MD_EXCEPTION_CODE_SOL_SIGIO = 22, /* socket I/O possible (SIGPOLL alias) */
7474
MD_EXCEPTION_CODE_SOL_SIGSTOP = 23, /* stop (cannot be caught or ignored) */
7575
MD_EXCEPTION_CODE_SOL_SIGTSTP = 24, /* user stop requested from tty */

filters/page_split/ImageView.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public slots:
106106

107107
/**
108108
* Same as ImageViewBase::getVisibleWidgetRect(), except reduced
109-
* vertically to accomodate the height of line endpoint handles.
109+
* vertically to accommodate the height of line endpoint handles.
110110
*/
111111
QRectF reducedWidgetArea() const;
112112

filters/page_split/PageLayoutEstimator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ struct CenterComparator
101101
* \param layout_type The requested layout type. The layout type of
102102
* SINGLE_PAGE_UNCUT is not handled here.
103103
* \param ltr_lines Folding line candidates sorted from left to right.
104-
* \param image_size The dimentions of the page image.
104+
* \param image_size The dimensions of the page image.
105105
* \param hor_shadows A downscaled grayscale image that contains
106106
* long enough and not too thin horizontal lines.
107107
* \param dbg An optional sink for debugging images.
@@ -180,7 +180,7 @@ std::auto_ptr<PageLayout> autoDetectSinglePageLayout(
180180
* \brief Try to auto-detect a page layout for a two-page configuration.
181181
*
182182
* \param ltr_lines Folding line candidates sorted from left to right.
183-
* \param image_size The dimentions of the page image.
183+
* \param image_size The dimensions of the page image.
184184
* \return The page layout detected or a null auto_ptr.
185185
*/
186186
std::auto_ptr<PageLayout> autoDetectTwoPageLayout(

filters/select_content/ContentBoxFinder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,7 @@ ContentBoxFinder::filterShadows(
13991399
14001400
status.throwIfCancelled();
14011401
1402-
// Long white vertical lines are definately not spaces between letters.
1402+
// Long white vertical lines are definitely not spaces between letters.
14031403
BinaryImage vert_whitespace(
14041404
closeBrick(reduced_dithering, QSize(1, 150), BLACK)
14051405
);

filters/select_content/Task.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Task::process(TaskStatus const& status, FilterData const& data)
114114
}
115115

116116
if ((params->contentSizeMM().isEmpty() && !params->contentRect().isEmpty()) || !params->dependencies().matches(deps)) {
117-
// Backwards compatibilty: put the missing data where it belongs.
117+
// Backwards compatibility: put the missing data where it belongs.
118118
Params const new_params(
119119
ui_data.contentRect(), ui_data.contentSizeMM(),
120120
deps, params->mode()

foundation/PriorityQueue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class PriorityQueue
6767

6868
/**
6969
* Like push(), but implemented through swapping \p obj with a default
70-
* constructed instance of T. This will make sence if copying a default
70+
* constructed instance of T. This will make sense if copying a default
7171
* constructed instance of T is much cheaper than copying \p obj.
7272
*/
7373
void pushDestructive(T& obj);

imageproc/FindPeaksGeneric.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void raiseAllButPeaks(
9292
* \param most_significant A functor or a pointer to a free function that
9393
* can be called with two arguments of type T and return the bigger
9494
* or the smaller of the two.
95-
* \param least_significant Same as most_significant, but the oposite operation.
95+
* \param least_significant Same as most_significant, but the opposite operation.
9696
* \param increase_significance A functor or a pointer to a free function that
9797
* takes one argument and returns the next most significant value next
9898
* to it. Hint: for floating point data, use the nextafter() family of

imageproc/MaxWhitespaceFinder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ MaxWhitespaceFinder::findBlackPixelCloseToCenter(
260260
// This means we are dealing with a horizontal line
261261
// and that we only have to check at most two pixels
262262
// (the endpoints) and that at least one of them
263-
// is definately black and that rect is a 1x1 pixels
263+
// is definitely black and that rect is a 1x1 pixels
264264
// block pointing to the left endpoint.
265265
if (sum != 0) {
266266
return outer_rect.topLeft();

imageproc/MaxWhitespaceFinder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ PriorityStorageImpl<QualityCompare>::popHeap(
327327

328328
// Now raise the node until it's at correct position. Very little
329329
// raising should be necessary, that's why it's faster than adding
330-
// an additional comparision to the loop where we lower the node.
330+
// an additional comparison to the loop where we lower the node.
331331
pushHeap(begin, begin + nodeIdx + 1);
332332
}
333333

imageproc/Morphology.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ GrayImage dilateOrErodeGray(
707707
}
708708
CoordinateSystem const dst_cs(dst_area.topLeft());
709709

710-
// Each pixel will be a minumum or maximum of a group of pixels
710+
// Each pixel will be a minimum or maximum of a group of pixels
711711
// in its neighborhood. The neighborhood is defined by collect_area.
712712
Brick const collect_area(brick.flipped());
713713

imageproc/PolynomialSurface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class PolynomialSurface
8181
/**
8282
* \brief Visualizes the polynomial surface as a grayscale image.
8383
*
84-
* The surface will be stretched / shrinked to fit the new size.
84+
* The surface will be stretched / shrunk to fit the new size.
8585
*/
8686
GrayImage render(QSize const& size) const;
8787
private:

imageproc/SeedFillGeneric.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ void seedFill8(
510510
*
511511
* \param spread_op A functor or a pointer to a free function that can be called with
512512
* two arguments of type T and return the bigger or the smaller of the two.
513-
* \param mask_op Same as spread_op, but the oposite operation.
513+
* \param mask_op Same as spread_op, but the opposite operation.
514514
* \param conn Determines whether to spread values to 4 or 8 eight immediate neighbors.
515515
* \param[in,out] seed Pointer to the seed buffer.
516516
* \param seed_stride The size of a row in the seed buffer, in terms of the number of T objects.

math/spfit/FrenetFrame.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class FrenetFrame
3636
/**
3737
* \brief Builds a Frenet frame from an origin and a (non-unit) tangent vector.
3838
*
39-
* The direction of the normal vector is choosen according to \p ydir,
39+
* The direction of the normal vector is chosen according to \p ydir,
4040
* considering the tangent vector to be pointing to the right. The normal direction
4141
* does matter, as we want the unit normal vector divided by signed curvature give
4242
* us the center of the curvature. For that to be the case, normal vector's direction

packaging/windows/readme.en.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ latest stable version.
181181
Select your version of Visual C++ (Visual Studio) instead of "MinGW Makefiles"
182182

183183
9. Now we are going to build Scan Tailor itself. On subsequent build of the
184-
same (possiblity modified) version, you can start right from this step.
184+
same (possibly modified) version, you can start right from this step.
185185
For building a different version, start from step 8.
186186

187187
[VC++]

0 commit comments

Comments
 (0)