Requested anchor RAIIed.

This commit is contained in:
2025-08-21 17:52:30 -04:00
parent 4274490a86
commit 2d1e95d36b
2 changed files with 9 additions and 15 deletions
+2 -2
View File
@@ -182,7 +182,7 @@ private:
VPosition scrollTargetVpos;
int scrollTargetX, scrollTargetY, scrollTargetWidth, scrollTargetHeight;
char *requestedAnchor;
std::optional< std::string > requestedAnchor;
int scrollIdleId, resizeIdleId;
bool scrollIdleNotInterrupted;
@@ -300,7 +300,7 @@ public:
void scrollTo (HPosition hpos, VPosition vpos,
int x, int y, int width, int height);
void scroll (ScrollCommand);
void setAnchor (const char *anchor);
void setAnchor (std::optional< std::string_view > anchor);
/* View */