From f91f33ab120a6e93b3541bfc3f34d893d7ede993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=A6=E5=87=8C=E6=B1=90?= Date: Thu, 19 Dec 2024 09:35:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86MyVector=E7=9A=84?= =?UTF-8?q?=E8=BF=AD=E4=BB=A3=E5=99=A8=E8=87=AA=E5=8A=A0=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Editor.h | 2 ++ mystl/my_vector.h | 9 --------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/components/Editor.h b/components/Editor.h index d071130..c68ae3d 100644 --- a/components/Editor.h +++ b/components/Editor.h @@ -5,6 +5,7 @@ #include "TextArea.h" #include "Cursor.h" #include "../utils/SyntaxHighlighter.h" +#include "../utils/ActionManager.h" #include "../utils/RichText.h" #include @@ -16,6 +17,7 @@ private: RichText coloredContent_; std::string ruleName_; MyVector lineedContent_; + ActionManager actionmanager_; MyVector split(std::string content) { MyVector lineedContent; diff --git a/mystl/my_vector.h b/mystl/my_vector.h index c5eb386..47dbeda 100644 --- a/mystl/my_vector.h +++ b/mystl/my_vector.h @@ -220,15 +220,6 @@ public: ptr -= n; return *this; } - - friend iterator operator++(iterator& ite) { - ++ite.ptr; - return ite; - } - friend iterator operator--(iterator& ite) { - --ite.ptr; - return ite; - } }; iterator begin() {