From f1e5714456cfb3da135fbcb3a75672334aeef41c Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 16 Aug 2024 21:54:06 +0300 Subject: [PATCH] disallow buffer change, include string dependency --- src/app/browser/main/tab/page/content.cpp | 2 +- src/app/browser/main/tab/page/content.hpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/browser/main/tab/page/content.cpp b/src/app/browser/main/tab/page/content.cpp index afced092..bccdacef 100644 --- a/src/app/browser/main/tab/page/content.cpp +++ b/src/app/browser/main/tab/page/content.cpp @@ -17,7 +17,7 @@ Content::Content() Content::~Content() = default; void Content::set( - string buffer + const string & buffer ) { // @TODO } diff --git a/src/app/browser/main/tab/page/content.hpp b/src/app/browser/main/tab/page/content.hpp index 798bf653..14067f30 100644 --- a/src/app/browser/main/tab/page/content.hpp +++ b/src/app/browser/main/tab/page/content.hpp @@ -3,6 +3,8 @@ #include +#include + namespace app::browser::main::tab::page { class Content : public Gtk::Box @@ -14,7 +16,7 @@ namespace app::browser::main::tab::page ~Content(); void set( - std::string buffer + const std::string & buffer ); }; }