diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-04-14 01:17:09 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-04-14 01:17:09 +0000 |
| commit | 93379384036dadada06139245d1e4eca13cabebd (patch) | |
| tree | 0f5475fd2c7fc212982d881b67444b20a0f8f809 /src/exception.hh | |
| parent | af5c528f043f663b94ce197b0c70ddb3da9224e8 (diff) | |
replace std::string references with String
Diffstat (limited to 'src/exception.hh')
| -rw-r--r-- | src/exception.hh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/exception.hh b/src/exception.hh index 89188e63..5aab02f6 100644 --- a/src/exception.hh +++ b/src/exception.hh @@ -1,7 +1,7 @@ #ifndef exception_hh_INCLUDED #define exception_hh_INCLUDED -#include <string> +#include "string.hh" namespace Kakoune { @@ -9,18 +9,18 @@ namespace Kakoune struct exception { virtual ~exception() {} - virtual std::string description() const; + virtual String description() const; }; struct runtime_error : exception { - runtime_error(const std::string& description) + runtime_error(const String& description) : m_description(description) {} - std::string description() const { return m_description; } + String description() const { return m_description; } private: - std::string m_description; + String m_description; }; struct logic_error : exception |
