Move option_not_found exception to the cpp file

This commit is contained in:
Maxime Coste 2015-04-26 20:40:32 +01:00
parent bbefde9379
commit 720c54c759
2 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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