aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZufu Liu <unknown>2025-05-24 17:43:14 +1000
committerZufu Liu <unknown>2025-05-24 17:43:14 +1000
commitaca9ce76597949b0429caa882df164702cdb92b0 (patch)
tree44756e3627ebc4b1ab19d3c086e12cc14faa8bef
parent32f7837ed8b70cf20e15ef34ef8448d18909910a (diff)
downloadscintilla-mirror-aca9ce76597949b0429caa882df164702cdb92b0.tar.gz
Remove line end space.
-rw-r--r--src/CharacterCategoryMap.cxx2
-rw-r--r--src/DBCS.h2
-rw-r--r--src/Document.cxx2
-rw-r--r--src/Document.h2
-rw-r--r--src/Editor.cxx2
-rw-r--r--src/UniConversion.cxx2
-rw-r--r--win32/ScintillaWin.cxx2
-rw-r--r--win32/SurfaceD2D.h2
8 files changed, 8 insertions, 8 deletions
diff --git a/src/CharacterCategoryMap.cxx b/src/CharacterCategoryMap.cxx
index 10218b3af..20fa7c480 100644
--- a/src/CharacterCategoryMap.cxx
+++ b/src/CharacterCategoryMap.cxx
@@ -4073,7 +4073,7 @@ namespace {
enum class OtherID { oidNone, oidStart, oidContinue };
// Silence 'magic' number warning as these character values are not used in multiple places.
-
+
// NOLINTBEGIN(*-magic-numbers)
// Some characters are treated as valid for identifiers even
diff --git a/src/DBCS.h b/src/DBCS.h
index ba6230649..96d282446 100644
--- a/src/DBCS.h
+++ b/src/DBCS.h
@@ -28,7 +28,7 @@ bool DBCSIsLeadByte(int codePage, char ch) noexcept;
bool DBCSIsTrailByte(int codePage, char ch) noexcept;
bool IsDBCSValidSingleByte(int codePage, int ch) noexcept;
-// Calculate a number from a DBCS byte pair that can be used to index into an array or map.
+// Calculate a number from a DBCS byte pair that can be used to index into an array or map.
// Should only be called with genuine DBCS character pairs which means that ch1 has top bit set.
constexpr uint16_t DBCSIndex(char ch1, char ch2) noexcept {
const unsigned char uch1 = ch1 & 0x7F;
diff --git a/src/Document.cxx b/src/Document.cxx
index e6f8f3543..c79c5002b 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -1306,7 +1306,7 @@ std::string CreateIndentation(Sci::Position indent, int tabSize, bool insertSpac
bool Scintilla::Internal::DiscardLastCombinedCharacter(std::string_view &text) noexcept {
// Handle the simple common case where a base character may be followed by
// accents and similar marks by discarding until start of base character.
- //
+ //
// From Grapheme_Cluster_Boundaries
// combining character sequence = ccs-base? ccs-extend+
// ccs-base := [\p{L}\p{N}\p{P}\p{S}\p{Zs}]
diff --git a/src/Document.h b/src/Document.h
index 4c6832d89..7655d5290 100644
--- a/src/Document.h
+++ b/src/Document.h
@@ -173,7 +173,7 @@ public:
};
// Base class for view state that can be held and transferred without understanding the contents.
-// Declared here but real implementation subclass declared in EditModel
+// Declared here but real implementation subclass declared in EditModel
struct ViewState {
ViewState() noexcept = default;
// Deleted so ViewState objects can not be copied
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 89cf544ab..d941612b1 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -4617,7 +4617,7 @@ bool Editor::PointInSelection(Point pt) {
}
ptrdiff_t Editor::SelectionFromPoint(Point pt) {
- // Prioritize checking inside non-empty selections since each character will be inside only 1
+ // Prioritize checking inside non-empty selections since each character will be inside only 1
const SelectionPosition posChar = SPositionFromLocation(pt, true, true);
for (size_t r = 0; r < sel.Count(); r++) {
if (sel.Range(r).ContainsCharacter(posChar)) {
diff --git a/src/UniConversion.cxx b/src/UniConversion.cxx
index 7183018f7..75fa679e0 100644
--- a/src/UniConversion.cxx
+++ b/src/UniConversion.cxx
@@ -303,7 +303,7 @@ int UnicodeFromUTF8(std::string_view sv) noexcept {
return UnicodeFromUTF8(reinterpret_cast<const unsigned char *>(sv.data()));
}
}
- // Failure so let the caller know
+ // Failure so let the caller know
return unicodeReplacementChar;
}
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index c66575de8..571d1000c 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -1019,7 +1019,7 @@ HRESULT ScintillaWin::CreateSwapChain(HWND hwnd) {
if (FAILED(hr))
return hr;
- // All successful so export swap chain for later presentation
+ // All successful so export swap chain for later presentation
pDXGISwapChain = std::move(pSwapChain);
return S_OK;
}
diff --git a/win32/SurfaceD2D.h b/win32/SurfaceD2D.h
index 13da459cc..8025069db 100644
--- a/win32/SurfaceD2D.h
+++ b/win32/SurfaceD2D.h
@@ -9,7 +9,7 @@
#define SURFACED2D_H
namespace Scintilla::Internal {
-
+
extern bool LoadD2D() noexcept;
extern void ReleaseD2D() noexcept;
extern ID2D1Factory1 *pD2DFactory;