gnucash maint: Fix some typos
Geert Janssens
gjanssens at code.gnucash.org
Mon Jan 23 10:09:53 EST 2023
Updated via https://github.com/Gnucash/gnucash/commit/19bbde70 (commit)
from https://github.com/Gnucash/gnucash/commit/d1b84fae (commit)
commit 19bbde7000c21e471e1c877a1716a61dde73af79
Author: Richard Cohen <richard at daijobu.co.uk>
Date: Mon Jan 23 15:01:46 2023 +0000
Fix some typos
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 26e700bcd..8a4bacf3f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -617,7 +617,7 @@ if (XCODE_VERSION)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${LIBDIR_BUILD}/gnucash)
endif()
-# For binarines
+# For binaries
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
if (XCODE_VERSION)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/bin)
diff --git a/gnucash/gnome-utils/dialog-totd.c b/gnucash/gnome-utils/dialog-totd.c
index 48d10fd1e..01e16f237 100644
--- a/gnucash/gnome-utils/dialog-totd.c
+++ b/gnucash/gnome-utils/dialog-totd.c
@@ -103,7 +103,7 @@ gnc_new_tip_number (TotdDialog *totd_dialog, gint offset)
*/
if (tip_list[current_tip_number])
tip_components = g_strsplit(tip_list[current_tip_number], "|", 0);
- /* If the tip is empty, g_strisplit will return an empty list. This
+ /* If the tip is empty, g_strsplit will return an empty list. This
* shouldn't normally happen, but make sure we don't crash just in
* case */
if (tip_components == NULL)
diff --git a/gnucash/gnome-utils/gnc-date-edit.c b/gnucash/gnome-utils/gnc-date-edit.c
index d0d7ba8e9..fde3aa5ee 100644
--- a/gnucash/gnome-utils/gnc-date-edit.c
+++ b/gnucash/gnome-utils/gnc-date-edit.c
@@ -1057,7 +1057,7 @@ gnc_date_edit_get_date_internal (GNCDateEdit *gde)
if (!date_was_valid)
{
- /* Hm... no valid date. What should we do not? As a hacky workaround we
+ /* Hm... no valid date. What should we do now? As a hacky workaround we
revert to today's date. Alternatively we can return some value that
signals that we don't get a valid date, but all callers of this
function will have to check this. Alas, I'm too lazy to do this here. */
diff --git a/gnucash/gnome-utils/gnc-main-window.c b/gnucash/gnome-utils/gnc-main-window.c
index 2ffbac052..51890edfd 100644
--- a/gnucash/gnome-utils/gnc-main-window.c
+++ b/gnucash/gnome-utils/gnc-main-window.c
@@ -1444,7 +1444,7 @@ gnc_main_window_quit(GncMainWindow *window)
GList *w, *next;
/* This is not a typical list iteration. There is a possibility
- * that the window maybe removed from the active_windows list so
+ * that the window may be removed from the active_windows list so
* we have to cache the 'next' pointer before executing any code
* in the loop. */
for (w = active_windows; w; w = next)
diff --git a/gnucash/gnucash.cpp b/gnucash/gnucash.cpp
index d32c21018..ba5116fc0 100644
--- a/gnucash/gnucash.cpp
+++ b/gnucash/gnucash.cpp
@@ -322,7 +322,7 @@ Gnucash::Gnucash::start ([[maybe_unused]] int argc, [[maybe_unused]] char **argv
}
/* Now the module files are looked up, which might cause some library
- initialization to be run, hence gtk must be initialized b*eforehand. */
+ initialization to be run, hence gtk must be initialized beforehand. */
gnc_module_system_init();
gnc_gui_init();
diff --git a/gnucash/import-export/qif-imp/assistant-qif-import.c b/gnucash/import-export/qif-imp/assistant-qif-import.c
index fb1347fd0..9231ef308 100644
--- a/gnucash/import-export/qif-imp/assistant-qif-import.c
+++ b/gnucash/import-export/qif-imp/assistant-qif-import.c
@@ -2119,7 +2119,7 @@ gnc_ui_qif_import_account_prepare (GtkAssistant *assistant, gpointer user_data)
if (wind->ask_date_format && wind->date_format)
qif_import_reparse_dates (wind);
- /* make sure there is a file selected, may of come back */
+ /* make sure there is a file selected, may have come back */
if (wind->selected_file == SCM_BOOL_F)
{
GtkAssistant *assistant = GTK_ASSISTANT(wind->window);
diff --git a/libgnucash/app-utils/QuickFill.h b/libgnucash/app-utils/QuickFill.h
index 4fd125319..ba85097c6 100644
--- a/libgnucash/app-utils/QuickFill.h
+++ b/libgnucash/app-utils/QuickFill.h
@@ -71,7 +71,7 @@ void gnc_quickfill_purge (QuickFill *qf);
*/
const char * gnc_quickfill_string (QuickFill *qf);
-/** Return the subnode of the tree whose strings all hold 'wc' as
+/** Return the subnode of the tree whose strings all hold 'c' as
* the next letter. That is, if 'qf' holds all strings starting
* with the letter 'a', and we ask for the letter 'b', then this
* routine will return the node holding all strings that start
diff --git a/libgnucash/backend/dbi/gnc-dbisqlconnection.cpp b/libgnucash/backend/dbi/gnc-dbisqlconnection.cpp
index 3eaf4d9bc..aabacc313 100644
--- a/libgnucash/backend/dbi/gnc-dbisqlconnection.cpp
+++ b/libgnucash/backend/dbi/gnc-dbisqlconnection.cpp
@@ -556,7 +556,7 @@ GncDbiSqlConnection::quote_string (const std::string& unquoted_str)
/** Check if the dbi connection is valid. If not attempt to re-establish it
- * Returns TRUE is there is a valid connection in the end or FALSE otherwise
+ * Returns TRUE if there is a valid connection in the end or FALSE otherwise
*/
bool
GncDbiSqlConnection::verify () noexcept
diff --git a/libgnucash/backend/dbi/gnc-dbisqlconnection.hpp b/libgnucash/backend/dbi/gnc-dbisqlconnection.hpp
index 7865bd216..a87137836 100644
--- a/libgnucash/backend/dbi/gnc-dbisqlconnection.hpp
+++ b/libgnucash/backend/dbi/gnc-dbisqlconnection.hpp
@@ -76,7 +76,7 @@ public:
set_error(ERR_BACKEND_NO_ERR, 0, false);
}
/** Check if the dbi connection is valid. If not attempt to re-establish it
- * Returns TRUE is there is a valid connection in the end or FALSE otherwise
+ * Returns TRUE if there is a valid connection in the end or FALSE otherwise
*/
bool verify() noexcept override;
bool retry_connection(const char* msg) noexcept override;
diff --git a/libgnucash/engine/qoflog.cpp b/libgnucash/engine/qoflog.cpp
index 993d9c208..58a78f4cc 100644
--- a/libgnucash/engine/qoflog.cpp
+++ b/libgnucash/engine/qoflog.cpp
@@ -237,7 +237,7 @@ qof_log_init_filename(const gchar* log_filename)
g_assert(g_strcmp0(log_filename, "/dev/null") != 0);
/* Windows prevents renaming of open files, so the next command silently fails there
- * No problem, the filename on Winows will simply have the random characters */
+ * No problem, the filename on Windows will simply have the random characters */
g_rename(fname, log_filename);
fout = fdopen(fd, "w");
#endif
diff --git a/libgnucash/engine/test/test-gnc-guid.cpp b/libgnucash/engine/test/test-gnc-guid.cpp
index 65c9f341b..10137f42e 100644
--- a/libgnucash/engine/test/test-gnc-guid.cpp
+++ b/libgnucash/engine/test/test-gnc-guid.cpp
@@ -82,7 +82,7 @@ TEST (GncGUID, from_string)
fail = true;
}
/* Currently, boost uuid string parsing is mostly very permissive, but it has some
- * odd pet peves. See https://svn.boost.org/trac/boost/ticket/12253 for more.*/
+ * odd pet peeves. See https://svn.boost.org/trac/boost/ticket/12253 for more.*/
if (BOOST_VERSION >= 106600)
EXPECT_TRUE (fail) << "Parsing the bogus string should throw";
else
diff --git a/libgnucash/gnc-module/gnc-module.c b/libgnucash/gnc-module/gnc-module.c
index 11465757e..f6ffcdf7d 100644
--- a/libgnucash/gnc-module/gnc-module.c
+++ b/libgnucash/gnc-module/gnc-module.c
@@ -228,9 +228,9 @@ gnc_module_system_refresh(void)
/* Gotcha: On MacOS, G_MODULE_SUFFIX is defined as "so",
* but if we do not build clean libtool modules with
- * "-module", we get dynamic libraries ending on .dylib On
- * Windows, all modules will move to bin/, so they will be
- * mixed with other libraries, such as gtk+. Adding a
+ * "-module", we get dynamic libraries ending in .dylib
+ * On Windows, all modules will move to bin/, so they will
+ * be mixed with other libraries, such as gtk+. Adding a
* prefix "libgncmod" filter will prevent the module loader
* from loading other libraries. The filter should work on
* other platforms.
Summary of changes:
CMakeLists.txt | 2 +-
gnucash/gnome-utils/dialog-totd.c | 2 +-
gnucash/gnome-utils/gnc-date-edit.c | 2 +-
gnucash/gnome-utils/gnc-main-window.c | 2 +-
gnucash/gnucash.cpp | 2 +-
gnucash/import-export/qif-imp/assistant-qif-import.c | 2 +-
libgnucash/app-utils/QuickFill.h | 2 +-
libgnucash/backend/dbi/gnc-dbisqlconnection.cpp | 2 +-
libgnucash/backend/dbi/gnc-dbisqlconnection.hpp | 2 +-
libgnucash/engine/qoflog.cpp | 2 +-
libgnucash/engine/test/test-gnc-guid.cpp | 2 +-
libgnucash/gnc-module/gnc-module.c | 6 +++---
12 files changed, 14 insertions(+), 14 deletions(-)
More information about the gnucash-changes
mailing list