From 2ad291e9753690727cf92ae18c0bcaa87d5ac169 Mon Sep 17 00:00:00 2001 From: matheuter <210880040@qq.com> Date: Thu, 20 Apr 2023 17:31:42 +0800 Subject: [PATCH] fix actor error --- src/actor.h | 6 +++++- src/plugin/filetreeview/actor.h | 5 ++++- src/plugin/filetreeview/actorprocessor.cpp | 1 - 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/actor.h b/src/actor.h index 0fb51c3..17f1f16 100644 --- a/src/actor.h +++ b/src/actor.h @@ -1,4 +1,6 @@ - +#ifndef _ACTOR_H_ +#define _ACTOR_H_ + #include #include #include @@ -107,3 +109,5 @@ private: */ FunctionWapper m_invokeFunctionWapper; }; + +#endif diff --git a/src/plugin/filetreeview/actor.h b/src/plugin/filetreeview/actor.h index 30b6f00..4de5752 100644 --- a/src/plugin/filetreeview/actor.h +++ b/src/plugin/filetreeview/actor.h @@ -16,8 +16,9 @@ ** along with this program. If not, see . **/ +#ifndef _ACTOR_H_ +#define _ACTOR_H_ -#pragma once #include #include #include @@ -120,3 +121,5 @@ private: */ FunctionWapper m_invokeFunctionWapper; }; + +#endif diff --git a/src/plugin/filetreeview/actorprocessor.cpp b/src/plugin/filetreeview/actorprocessor.cpp index 96af367..972af41 100644 --- a/src/plugin/filetreeview/actorprocessor.cpp +++ b/src/plugin/filetreeview/actorprocessor.cpp @@ -16,7 +16,6 @@ ** along with this program. If not, see . **/ - #include "actorprocessor.h" ActorProcessor::ActorProcessor(): m_actorMap(new std::unordered_map)