From f3af6c7e5b46f4209a4981e5d7be217368f40b15 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 8 Feb 2024 15:12:29 +0800 Subject: Get rid of GSL. --- src/ui/style/StyleRuleSet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/style/StyleRuleSet.cpp') diff --git a/src/ui/style/StyleRuleSet.cpp b/src/ui/style/StyleRuleSet.cpp index 4deaaefa..7b6454ec 100644 --- a/src/ui/style/StyleRuleSet.cpp +++ b/src/ui/style/StyleRuleSet.cpp @@ -37,7 +37,7 @@ void StyleRuleSet::SetParent(std::shared_ptr parent) { RaiseChangeEvent(); } -void StyleRuleSet::AddStyleRule(StyleRule rule, gsl::index index) { +void StyleRuleSet::AddStyleRule(StyleRule rule, Index index) { Expects(index >= 0 && index <= GetSize()); rules_.insert(rules_.cbegin() + index, std::move(rule)); @@ -45,7 +45,7 @@ void StyleRuleSet::AddStyleRule(StyleRule rule, gsl::index index) { RaiseChangeEvent(model::ListChange::ItemAdd(index)); } -void StyleRuleSet::RemoveStyleRule(gsl::index index, gsl::index count) { +void StyleRuleSet::RemoveStyleRule(Index index, Index count) { Expects(index >= 0); Expects(count >= 0 && index + count <= GetSize()); -- cgit v1.2.3