From 720c54c759c90288da185be2dbfcef8b2ecb1e9b Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 26 Apr 2015 20:40:32 +0100 Subject: [PATCH] Move option_not_found exception to the cpp file --- src/option_manager.cc | 6 ++++++ src/option_manager.hh | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/option_manager.cc b/src/option_manager.cc index 34f30d92..2fba4546 100644 --- a/src/option_manager.cc +++ b/src/option_manager.cc @@ -39,6 +39,12 @@ void OptionManager::unregister_watcher(OptionManagerWatcher& watcher) m_watchers.erase(it); } +struct option_not_found : public runtime_error +{ + option_not_found(StringView name) + : runtime_error("option not found: " + name) {} +}; + Option& OptionManager::get_local_option(StringView name) { auto it = find_option(m_options, name); diff --git a/src/option_manager.hh b/src/option_manager.hh index ad295fb4..ec56cf10 100644 --- a/src/option_manager.hh +++ b/src/option_manager.hh @@ -12,12 +12,6 @@ namespace Kakoune { -struct option_not_found : public runtime_error -{ - option_not_found(StringView name) - : runtime_error("option not found: " + name) {} -}; - class OptionManager; enum class OptionFlags