aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/css/css_tokeniser.hxx
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-04 17:35:51 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-04 17:35:51 +0000
commitffc6fac92c4b8d10a05e35e59ee17b4f7b642406 (patch)
tree20759dc8444acb4a7d9b75032d931be6d8984dfb /src/libserver/css/css_tokeniser.hxx
parent8be8cf9bcd4047c17cf9f8b95b0831ecbf22d8ae (diff)
downloadrspamd-ffc6fac92c4b8d10a05e35e59ee17b4f7b642406.tar.gz
rspamd-ffc6fac92c4b8d10a05e35e59ee17b4f7b642406.zip
[Project] Css: Properties attachment logic
Diffstat (limited to 'src/libserver/css/css_tokeniser.hxx')
-rw-r--r--src/libserver/css/css_tokeniser.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libserver/css/css_tokeniser.hxx b/src/libserver/css/css_tokeniser.hxx
index 70128e8c8..7f5505f15 100644
--- a/src/libserver/css/css_tokeniser.hxx
+++ b/src/libserver/css/css_tokeniser.hxx
@@ -99,7 +99,8 @@ struct css_parser_token {
css_parser_token(css_parser_token &&other) = default;
auto operator=(css_parser_token &&other) -> css_parser_token& = default;
auto adjust_dim(const css_parser_token &dim_token) -> bool;
- auto get_string_or_default(const std::string_view &def) const -> std::string_view {
+
+ auto get_string_or_default(const std::string_view &def) const -> const std::string_view & {
if (value.index() == 0) {
return std::get<std::string_view>(value);
}