Skip to content

Commit

Permalink
Use unsigned instead of unsigned int in `Editor::selectionStartHa…
Browse files Browse the repository at this point in the history
…sMarkerFor` aligning with WebKit Code Style

https://bugs.webkit.org/show_bug.cgi?id=270424

Reviewed by Fujii Hironori.

This patch is to use `unsigned` instead of `unsigned int` as per WebKit's Code Style Guidelines [1]:

[1] https://webkit.org/code-style-guidelines/#types-unsigned

* Source/WebCore/editing/Editor.cpp:
(Editor::selectionStartHasMarkerFor):

Canonical link: https://commits.webkit.org/275612@main
  • Loading branch information
Ahmad-S792 authored and Ahmad Saleem committed Mar 4, 2024
1 parent d461338 commit 8cc4532
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/WebCore/editing/Editor.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2006-2020 Apple Inc. All rights reserved.
* Copyright (C) 2006-2024 Apple Inc. All rights reserved.
* Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -4092,8 +4092,8 @@ bool Editor::selectionStartHasMarkerFor(DocumentMarker::Type markerType, int fro
if (!markers)
return false;

unsigned int startOffset = static_cast<unsigned int>(from);
unsigned int endOffset = static_cast<unsigned int>(from + length);
unsigned startOffset = static_cast<unsigned>(from);
unsigned endOffset = static_cast<unsigned>(from + length);
for (auto& marker : markers->markersFor(*node)) {
if (marker->startOffset() <= startOffset && endOffset <= marker->endOffset() && marker->type() == markerType)
return true;
Expand Down

0 comments on commit 8cc4532

Please sign in to comment.