summaryrefslogtreecommitdiff
path: root/src/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.h')
-rw-r--r--src/error.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/error.h b/src/error.h
index cffca1e5..4f3375ab 100644
--- a/src/error.h
+++ b/src/error.h
@@ -18,10 +18,10 @@
#define WABT_ERROR_H_
#include <string>
+#include <string_view>
#include <vector>
#include "src/common.h"
-#include "src/string-view.h"
namespace wabt {
@@ -43,8 +43,8 @@ static WABT_INLINE const char* GetErrorLevelName(ErrorLevel error_level) {
class Error {
public:
Error() : error_level(ErrorLevel::Error) {}
- Error(ErrorLevel error_level, Location loc, string_view message)
- : error_level(error_level), loc(loc), message(message.to_string()) {}
+ Error(ErrorLevel error_level, Location loc, std::string_view message)
+ : error_level(error_level), loc(loc), message(message) {}
ErrorLevel error_level;
Location loc;