summaryrefslogtreecommitdiffstats
path: root/src/types.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 66f9acb..16efddd 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -1,5 +1,5 @@
/* This file is part of mastodonpp.
- * Copyright © 2020 tastytea <tastytea@tastytea.de>
+ * Copyright © 2020, 2021 tastytea <tastytea@tastytea.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
@@ -71,7 +71,7 @@ parametermap answer_type::parse_pagination(const bool next) const
return {};
}
- const auto direction{next ? R"(rel="next")" : R"(rel="prev")"};
+ const string_view direction{next ? R"(rel="next")" : R"(rel="prev")"};
auto endpos{link.find(direction)};
endpos = link.rfind('>', endpos);
auto startpos{link.rfind('?', endpos) + 1};