From d215fe99e09930c6ba469d1716e7f403f1648d31 Mon Sep 17 00:00:00 2001 From: pit-ray Date: Sat, 12 Aug 2023 00:15:59 +0900 Subject: [PATCH] fix defects of coverity --- src/core/autocmd.cpp | 2 +- src/core/autocmd.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/autocmd.cpp b/src/core/autocmd.cpp index db32b1ca..2e8309ad 100644 --- a/src/core/autocmd.cpp +++ b/src/core/autocmd.cpp @@ -145,7 +145,7 @@ namespace vind { namespace core { - AutoCmdEvent get_autocmd_event(const std::string& event_name) noexcept { + AutoCmdEvent get_autocmd_event(const std::string& event_name) { static std::unordered_map names { {"appenter", AutoCmdEvent::APP_ENTER}, {"appleave", AutoCmdEvent::APP_LEAVE}, diff --git a/src/core/autocmd.hpp b/src/core/autocmd.hpp index 8646a33f..c0b0b9f5 100644 --- a/src/core/autocmd.hpp +++ b/src/core/autocmd.hpp @@ -36,7 +36,7 @@ namespace vind UNDEFINED, } ; - AutoCmdEvent get_autocmd_event(const std::string& event_name) noexcept ; + AutoCmdEvent get_autocmd_event(const std::string& event_name) ; inline AutoCmdEvent get_enter_event(Mode mode) { static const std::unordered_map enter_events {