diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-05 17:47:31 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-05 17:47:31 +0200 |
| commit | dfcebbeae9d982b8e2a42197b2892334b665de2d (patch) | |
| tree | 182339f03eae894aad97f0fc55b0d8438c4ef62d /include/winapi/debug/post_mortem.hpp | |
| parent | upgrade to std::optional (diff) | |
| download | winapi-debug-dfcebbeae9d982b8e2a42197b2892334b665de2d.tar.gz winapi-debug-dfcebbeae9d982b8e2a42197b2892334b665de2d.zip | |
upgrade to std::string_view
Diffstat (limited to 'include/winapi/debug/post_mortem.hpp')
| -rw-r--r-- | include/winapi/debug/post_mortem.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/winapi/debug/post_mortem.hpp b/include/winapi/debug/post_mortem.hpp index bf4ad83..5ddc85e 100644 --- a/include/winapi/debug/post_mortem.hpp +++ b/include/winapi/debug/post_mortem.hpp @@ -14,7 +14,7 @@ #include <functional> #include <map> -#include <string> +#include <string_view> #include <unordered_set> namespace winapi { @@ -23,7 +23,7 @@ class PostMortem { public: PostMortem() = default; - Address add_pdb(Address online_base, const std::string& path); + Address add_pdb(Address online_base, std::string_view path); typedef std::function<void(const Symbol&)> OnSymbol; void enum_symbols(const OnSymbol&) const; @@ -31,7 +31,7 @@ public: void enum_symbols(const Module&, const OnSymbol&) const; Symbol resolve_symbol(Address) const; - Symbol resolve_symbol(const std::string&) const; + Symbol resolve_symbol(std::string_view) const; LineInfo resolve_line(Address) const; |
