Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
richardcohen committed Jan 23, 2023
1 parent d1b84fa commit 19bbde7
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion gnucash/gnome-utils/dialog-totd.c
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion gnucash/gnome-utils/gnc-date-edit.c
Expand Up @@ -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. */
Expand Down
2 changes: 1 addition & 1 deletion gnucash/gnome-utils/gnc-main-window.c
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion gnucash/gnucash.cpp
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion gnucash/import-export/qif-imp/assistant-qif-import.c
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion libgnucash/app-utils/QuickFill.h
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libgnucash/backend/dbi/gnc-dbisqlconnection.cpp
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libgnucash/backend/dbi/gnc-dbisqlconnection.hpp
Expand Up @@ -76,7 +76,7 @@ class GncDbiSqlConnection : public GncSqlConnection
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;
Expand Down
2 changes: 1 addition & 1 deletion libgnucash/engine/qoflog.cpp
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libgnucash/engine/test/test-gnc-guid.cpp
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions libgnucash/gnc-module/gnc-module.c
Expand Up @@ -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.
Expand Down

0 comments on commit 19bbde7

Please sign in to comment.