diff options
Diffstat (limited to 'gdbsupport/format.h')
-rw-r--r-- | gdbsupport/format.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdbsupport/format.h b/gdbsupport/format.h index 2af34ab..26e327a 100644 --- a/gdbsupport/format.h +++ b/gdbsupport/format.h @@ -20,7 +20,7 @@ #ifndef COMMON_FORMAT_H #define COMMON_FORMAT_H -#include "gdbsupport/gdb_string_view.h" +#include <string_view> #if defined(__MINGW32__) && !defined(PRINTF_HAS_LONG_LONG) # define USE_PRINTF_I64 1 @@ -56,12 +56,13 @@ struct format_piece argclass (argc), n_int_args (n) { + gdb_assert (str != nullptr); } bool operator== (const format_piece &other) const { return (this->argclass == other.argclass - && gdb::string_view (this->string) == other.string); + && std::string_view (this->string) == other.string); } const char *string; |