Skip to content

Commit

Permalink
fix typo in source code use codespell.
Browse files Browse the repository at this point in the history
$ codespell --quiet-level=3
./global.h:169: dispite  ==> despite
./global.h:265: seach  ==> search
./gui/nbrowserwindow.cpp:1105: allign  ==> align
./gui/nbrowserwindow.cpp:1115: allign  ==> align
./java/src/cx/fbn/encrypt/Base64.java:69: possiblity  ==> possibility
./java/src/cx/fbn/encrypt/Base64.java:469: accomodate  ==> accommodate
./java/src/cx/fbn/encrypt/Base64.java:996: accomodate  ==> accommodate
./sql/resourcetable.h:119: teh  ==> the
./sql/notebooktable.h:89: teh  ==> the
./filters/filterengine.cpp:2142: funciton  ==> function
  • Loading branch information
hosiet committed Aug 27, 2016
1 parent 9d17ad9 commit 92748c3
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion filters/filterengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2139,7 +2139,7 @@ void FilterEngine::filterSearchStringResourceRecognitionTypeAny(QString string)


// Check if a resource contains a specific search string. Used in highlighting PDFs & attachments
// This funciton is used in two different ways. If the *returnHits pointer is NULL, it searches
// This function is used in two different ways. If the *returnHits pointer is NULL, it searches
// for the first match in a PDF and exits with true/false if a match is found. If the pointer is
// not null, it will return a list of all of the searchString terms that are found. This is useful
// in knowing what to highlight in a PDF.
Expand Down
4 changes: 2 additions & 2 deletions global.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class Global
int defaultGuiFontSize; // Default GUI font size
QString defaultGuiFont; // Default GUI font name
bool startupNewNote; // Were we started with the command to begin a new note?
bool forceNoStartMimized; // Force the system to not start minimized, dispite the user's settings
bool forceNoStartMimized; // Force the system to not start minimized, despite the user's settings
bool forceSystemTrayAvailable; // Override QSystemTrayIcon::isSystemTrayAvailable()
bool forceStartMinimized; // Force it to start minimized, despiet the user's settings
bool startMinimized; // Do user prefernces say to start minimized?
Expand Down Expand Up @@ -262,7 +262,7 @@ class Global
QString getResourcefileName(QString key); // Get the actual file path for a given icon theme
void getThemeNamesFromFile(QFile &file, QStringList &values); // Get all themes available in a given file
void stackDump(int max=0); // Utility to dump the running stack
bool getForceSearchLowerCase(); // Get value to force seach db in lower case from settings
bool getForceSearchLowerCase(); // Get value to force search db in lower case from settings
void setForceSearchLowerCase(bool value); // save forceSearchLowerCase
IndexRunner *indexRunner; // Pointer to index thread

Expand Down
4 changes: 2 additions & 2 deletions gui/nbrowserwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ void NBrowserWindow::alignCenterButtonPressed() {



// The left allign button was pressed
// The left align button was pressed
void NBrowserWindow::alignLeftButtonPressed() {
this->editor->page()->mainFrame()->evaluateJavaScript(
"document.execCommand('JustifyLeft', false, '');");
Expand All @@ -1111,7 +1111,7 @@ void NBrowserWindow::alignLeftButtonPressed() {



// The allign right button was pressed
// The align right button was pressed
void NBrowserWindow::alignRightButtonPressed() {
this->editor->page()->mainFrame()->evaluateJavaScript(
"document.execCommand('JustifyRight', false, '');");
Expand Down
6 changes: 3 additions & 3 deletions java/src/cx/fbn/encrypt/Base64.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
* <a href="http://www.faqs.org/rfcs/rfc3548.html">RFC3548</a>.</li>
* <li><em>Throws exceptions instead of returning null values.</em> Because some operations
* (especially those that may permit the GZIP option) use IO streams, there
* is a possiblity of an java.io.IOException being thrown. After some discussion and
* is a possibility of an java.io.IOException being thrown. After some discussion and
* thought, I've changed the behavior of the methods to throw java.io.IOExceptions
* rather than return null if ever there's an error. I think this is more
* appropriate, though it will require some changes to your code. Sorry,
Expand Down Expand Up @@ -466,7 +466,7 @@ private static byte[] encode3to4( byte[] b4, byte[] threeBytes, int numSigBytes,
* anywhere along their length by specifying
* <var>srcOffset</var> and <var>destOffset</var>.
* This method does not check to make sure your arrays
* are large enough to accomodate <var>srcOffset</var> + 3 for
* are large enough to accommodate <var>srcOffset</var> + 3 for
* the <var>source</var> array or <var>destOffset</var> + 4 for
* the <var>destination</var> array.
* The actual number of significant bytes in your array is
Expand Down Expand Up @@ -993,7 +993,7 @@ public static byte[] encodeBytesToBytes( byte[] source, int off, int len, int op
* anywhere along their length by specifying
* <var>srcOffset</var> and <var>destOffset</var>.
* This method does not check to make sure your arrays
* are large enough to accomodate <var>srcOffset</var> + 4 for
* are large enough to accommodate <var>srcOffset</var> + 4 for
* the <var>source</var> array or <var>destOffset</var> + 3 for
* the <var>destination</var> array.
* This method returns the actual number of bytes that
Expand Down
2 changes: 1 addition & 1 deletion sql/notebooktable.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class NotebookTable
void getStacks(QStringList &stacks); // Get a list of all stacks
bool isStacked(qint32 lid); // Is this notebook in a stack?
qint32 getDefaultNotebookLid(); // Get the default notebook LID
QString getDefaultNotebookGuid(); // Get teh default notebok GUID
QString getDefaultNotebookGuid(); // Get the default notebok GUID
bool isReadOnly(qint32 notebookLid); // Is this DB read only?
qint32 getConflictNotebook(); // get the LID of the conflict notebook
qint32 getAllDirty(QList<qint32> &lids); // get all dirty notebooks
Expand Down
2 changes: 1 addition & 1 deletion sql/resourcetable.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class ResourceTable
qint32 addStub(qint32 resLid, qint32 noteLid); // Add a basic "stub" record. Useful when duplicating notes
void reindexAllResources(); // Reindex all relources
void updateNoteLid(qint32 resourceLid, qint32 newNoteLid); // Update the owning note
void expungeByNote(qint32 notebookLid); // Given a note's LID, erase teh resource
void expungeByNote(qint32 notebookLid); // Given a note's LID, erase the resource
void mapResource(NSqlQuery &query, Resource &resource); // Save a resource map data
};

Expand Down

0 comments on commit 92748c3

Please sign in to comment.