aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/winapi/debug/dbghelp.hpp
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-05 17:47:31 +0200
committerEgor Tensin <egor@tensin.name>2026-06-05 17:47:31 +0200
commitdfcebbeae9d982b8e2a42197b2892334b665de2d (patch)
tree182339f03eae894aad97f0fc55b0d8438c4ef62d /include/winapi/debug/dbghelp.hpp
parentupgrade to std::optional (diff)
downloadwinapi-debug-dfcebbeae9d982b8e2a42197b2892334b665de2d.tar.gz
winapi-debug-dfcebbeae9d982b8e2a42197b2892334b665de2d.zip
upgrade to std::string_view
Diffstat (limited to '')
-rw-r--r--include/winapi/debug/dbghelp.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/winapi/debug/dbghelp.hpp b/include/winapi/debug/dbghelp.hpp
index fb179f3..29e56e7 100644
--- a/include/winapi/debug/dbghelp.hpp
+++ b/include/winapi/debug/dbghelp.hpp
@@ -12,7 +12,7 @@
#include <windows.h>
#include <functional>
-#include <string>
+#include <string_view>
namespace winapi {
@@ -27,7 +27,7 @@ public:
DbgHelp& operator=(DbgHelp) noexcept;
~DbgHelp();
- ModuleInfo load_pdb(const std::string& path) const;
+ ModuleInfo load_pdb(std::string_view path) const;
typedef std::function<void(const ModuleInfo&)> OnModule;
void enum_modules(const OnModule&) const;
@@ -36,13 +36,13 @@ public:
typedef std::function<void(const SymbolInfo&)> OnSymbol;
static constexpr auto all_symbols = "*!*";
- void enum_symbols(const ModuleInfo&, const std::string& mask, const OnSymbol&) const;
+ void enum_symbols(const ModuleInfo&, std::string_view mask, const OnSymbol&) const;
void enum_symbols(const ModuleInfo&, const OnSymbol&) const;
- void enum_symbols(const std::string& mask, const OnSymbol&) const;
+ void enum_symbols(std::string_view mask, const OnSymbol&) const;
void enum_symbols(const OnSymbol&) const;
SymbolInfo resolve_symbol(Address) const;
- SymbolInfo resolve_symbol(const std::string&) const;
+ SymbolInfo resolve_symbol(std::string_view) const;
LineInfo resolve_line(Address) const;