aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils/pdb_descr.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 /utils/pdb_descr.hpp
parentupgrade to std::optional (diff)
downloadwinapi-debug-dfcebbeae9d982b8e2a42197b2892334b665de2d.tar.gz
winapi-debug-dfcebbeae9d982b8e2a42197b2892334b665de2d.zip
upgrade to std::string_view
Diffstat (limited to 'utils/pdb_descr.hpp')
-rw-r--r--utils/pdb_descr.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/pdb_descr.hpp b/utils/pdb_descr.hpp
index fbf0950..3e24f2c 100644
--- a/utils/pdb_descr.hpp
+++ b/utils/pdb_descr.hpp
@@ -10,13 +10,14 @@
#include <boost/program_options.hpp>
#include <string>
+#include <string_view>
#include <vector>
struct PDB {
winapi::Address online_base;
std::string path;
- static PDB parse(std::string src) {
+ static PDB parse(const std::string& src) {
static constexpr auto sep = ',';
const auto sep_pos = src.find(sep);