commit 747a4a7946d1cfa9b7376f592d6238fb1747b5a5 Author: Juergen Spitzmueller <sp...@lyx.org> Date: Sun Jun 9 07:29:37 2024 +0200
rename function --- src/Paragraph.cpp | 2 +- src/insets/InsetLayout.cpp | 4 ++-- src/insets/InsetLayout.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 90358d6903..369d03ee83 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -1247,7 +1247,7 @@ void Paragraph::Private::latexSpecialChar(otexstream & os, // Both a layout tag and a dedicated inset seem too much effort for this. string const hr_url_escape_chars = "\\#%"; if (contains(hr_url_escape_chars, c) && runparams.use_hyperref && il.latexname() == "url" - && il.requiresPackage("url")) { + && il.requiresFeature("url")) { os << "\\"; os.put(c); return; diff --git a/src/insets/InsetLayout.cpp b/src/insets/InsetLayout.cpp index 3a97023097..d61c809394 100644 --- a/src/insets/InsetLayout.cpp +++ b/src/insets/InsetLayout.cpp @@ -998,9 +998,9 @@ int InsetLayout::requiredArgs() const } -bool InsetLayout::requiresPackage(string const pkg) const +bool InsetLayout::requiresFeature(string const f) const { - return required_.find(pkg) != required_.end(); + return required_.find(f) != required_.end(); } diff --git a/src/insets/InsetLayout.h b/src/insets/InsetLayout.h index fc3cb28b5d..2d206fd7a5 100644 --- a/src/insets/InsetLayout.h +++ b/src/insets/InsetLayout.h @@ -202,7 +202,7 @@ public: /// std::set<std::string> const & required() const { return required_; } /// - bool requiresPackage(std::string const pkg) const; + bool requiresFeature(std::string const f) const; /// bool isMultiPar() const { return multipar_; } /// -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs