From 9202522a399ded8d125f0f1dea178868b7cac79b Mon Sep 17 00:00:00 2001 From: Zach Nelson Date: Thu, 11 Jun 2026 09:38:00 -0500 Subject: [PATCH] refactor: Drop redundant self-class prefix on applyDirectionToEntry (#2325) ## Summary Non-functional cleanup: `ChapterHtmlSlimParser::` prefix is redundant when calling `applyDirectionToEntry` within `ChapterHtmlSlimParser` methods. --- ### AI Usage Did you use AI tools to help write this code? _**NO**_ --- lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp b/lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp index 2688f334..c4b0ccd5 100644 --- a/lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp +++ b/lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp @@ -758,7 +758,7 @@ void XMLCALL ChapterHtmlSlimParser::startElement(void* userData, const XML_Char* entry.depth = self->depth; entry.hasUnderline = true; entry.underline = true; - ChapterHtmlSlimParser::applyDirectionToEntry(entry, cssStyle); + applyDirectionToEntry(entry, cssStyle); self->inlineStyleStack.push_back(entry); self->updateEffectiveInlineStyle(); @@ -843,7 +843,7 @@ void XMLCALL ChapterHtmlSlimParser::startElement(void* userData, const XML_Char* entry.hasItalic = true; entry.italic = cssStyle.fontStyle == CssFontStyle::Italic; } - ChapterHtmlSlimParser::applyDirectionToEntry(entry, cssStyle); + applyDirectionToEntry(entry, cssStyle); self->inlineStyleStack.push_back(entry); self->updateEffectiveInlineStyle(); } else if (matches(name, BOLD_TAGS, std::size(BOLD_TAGS))) { @@ -866,7 +866,7 @@ void XMLCALL ChapterHtmlSlimParser::startElement(void* userData, const XML_Char* entry.hasUnderline = true; entry.underline = cssStyle.textDecoration == CssTextDecoration::Underline; } - ChapterHtmlSlimParser::applyDirectionToEntry(entry, cssStyle); + applyDirectionToEntry(entry, cssStyle); self->inlineStyleStack.push_back(entry); self->updateEffectiveInlineStyle(); } else if (matches(name, ITALIC_TAGS, std::size(ITALIC_TAGS))) { @@ -889,7 +889,7 @@ void XMLCALL ChapterHtmlSlimParser::startElement(void* userData, const XML_Char* entry.hasUnderline = true; entry.underline = cssStyle.textDecoration == CssTextDecoration::Underline; } - ChapterHtmlSlimParser::applyDirectionToEntry(entry, cssStyle); + applyDirectionToEntry(entry, cssStyle); self->inlineStyleStack.push_back(entry); self->updateEffectiveInlineStyle(); } else if (strcmp(name, "sup") == 0 || strcmp(name, "sub") == 0) { @@ -931,7 +931,7 @@ void XMLCALL ChapterHtmlSlimParser::startElement(void* userData, const XML_Char* entry.hasUnderline = true; entry.underline = cssStyle.textDecoration == CssTextDecoration::Underline; } - ChapterHtmlSlimParser::applyDirectionToEntry(entry, cssStyle); + applyDirectionToEntry(entry, cssStyle); if (cssStyle.hasVerticalAlign()) { if (cssStyle.verticalAlign == CssVerticalAlign::Super) { entry.hasSup = true;