Skip to content

Commit

Permalink
fix defects of coverity
Browse files Browse the repository at this point in the history
  • Loading branch information
pit-ray committed Aug 11, 2023
1 parent b113787 commit d215fe9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/autocmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string, AutoCmdEvent> names {
{"appenter", AutoCmdEvent::APP_ENTER},
{"appleave", AutoCmdEvent::APP_LEAVE},
Expand Down
2 changes: 1 addition & 1 deletion src/core/autocmd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Mode, AutoCmdEvent> enter_events {
Expand Down

0 comments on commit d215fe9

Please sign in to comment.