summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2025-02-05 12:34:39 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2025-02-05 12:34:39 +0100
commit904039c4c6cd2d67199709919fa1fc844b0f4af2 (patch)
tree149baa442aa8a166c64fd3025a0be65666beba21 /src
parent89d146eceee54ce2d4692751d3e7dcdb23817a28 (diff)
Fix typos and trailing whitespace
Also replace 'MSWindows' with 'Windows' where appropriate, leaving only old documents like README files from 1.3 and older as-is.
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Help_Dialog_Dox.cxx6
-rw-r--r--src/Fl_Help_View.cxx2
-rw-r--r--src/Fl_Text_Editor.cxx2
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/Fl_Help_Dialog_Dox.cxx b/src/Fl_Help_Dialog_Dox.cxx
index 5be2a9fcc..49d17d37c 100644
--- a/src/Fl_Help_Dialog_Dox.cxx
+++ b/src/Fl_Help_Dialog_Dox.cxx
@@ -40,9 +40,9 @@
/** \fn int Fl_Help_Dialog::load(const char *f)
\brief Loads the specified HTML file into the Fl_Help_View widget.
- The filename can also contain a target name ("filename.html#target"). Always
- use forward slashes as path deliminators, MSWindows-style backslashes are not
- supported here
+ The filename can also contain a target name ("filename.html#target"). Always
+ use forward slashes as path delimiters, Windows-style backslashes are not
+ supported here.
\param[in] f the name and path of an HTML file
\return 0 on success, -1 on error
\see Fl_Help_View::load(), fl_load_uri()
diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx
index 2045dff1f..3c1081d9b 100644
--- a/src/Fl_Help_View.cxx
+++ b/src/Fl_Help_View.cxx
@@ -3326,7 +3326,7 @@ Fl_Help_View::~Fl_Help_View()
requested page in an external browser.
In all other cases, the URL is interpreted as a filename. The file is read and
- displayed in this borwser. Note that MSWindows style backslashes are not
+ displayed in this browser. Note that Windows style backslashes are not
supported in the file name.
\param[in] f filename or URL
diff --git a/src/Fl_Text_Editor.cxx b/src/Fl_Text_Editor.cxx
index 9fe2b5b01..205687c36 100644
--- a/src/Fl_Text_Editor.cxx
+++ b/src/Fl_Text_Editor.cxx
@@ -132,7 +132,7 @@ static struct {
{ FL_Page_Down, FL_CTRL|FL_SHIFT, Fl_Text_Editor::kf_c_s_move },
//{ FL_Clear, 0, Fl_Text_Editor::delete_to_eol },
{ 'z', FL_CTRL, Fl_Text_Editor::kf_undo },
- { 'z', FL_CTRL|FL_SHIFT, Fl_Text_Editor::kf_redo }, // MSWindows screen driver also defines Ctrl-Y
+ { 'z', FL_CTRL|FL_SHIFT, Fl_Text_Editor::kf_redo }, // Windows screen driver also defines Ctrl-Y
{ '/', FL_CTRL, Fl_Text_Editor::kf_undo }, // Emacs
{ '?', FL_CTRL, Fl_Text_Editor::kf_redo }, // Emacs
{ 'x', FL_CTRL, Fl_Text_Editor::kf_cut },
diff --git a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
index 2e3a35cb0..442896bea 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
+++ b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
@@ -1003,7 +1003,7 @@ const char *Fl_WinAPI_System_Driver::home_directory_name()
}
if (!home) {
const char *h = getenv("UserProfile");
- if (h)
+ if (h)
home = ::strdup(h);
}
if (!home) {