aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/module.cpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-15 03:30:56 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-15 03:35:11 +0300
commiteeac54304af4a06ab9e4e3ce944944a609c68a8a (patch)
tree1dc85b8464e41c47d7463c5d7fc281628f9995b1 /src/module.cpp
parentadd test/ to test, for starters, enum_symbols (diff)
downloadwinapi-debug-eeac54304af4a06ab9e4e3ce944944a609c68a8a.tar.gz
winapi-debug-eeac54304af4a06ab9e4e3ce944944a609c68a8a.zip
refactoring
Diffstat (limited to '')
-rw-r--r--src/module.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/module.cpp b/src/module.cpp
index 9f12599..6ee0c08 100644
--- a/src/module.cpp
+++ b/src/module.cpp
@@ -14,18 +14,18 @@
namespace pdb {
-ModuleInfo::ModuleInfo() : ModuleInfo{create_raw()} {}
+ModuleInfo::ModuleInfo() : ModuleInfo{create_impl()} {}
-ModuleInfo::ModuleInfo(const Raw& raw) : raw{raw} {
- if (raw.SizeOfStruct != sizeof(raw))
+ModuleInfo::ModuleInfo(const Impl& impl) : impl{impl} {
+ if (impl.SizeOfStruct != sizeof(impl))
throw std::runtime_error{"invalid IMAGEHLP_MODULE64.SizeOfStruct"};
}
-ModuleInfo::Raw ModuleInfo::create_raw() {
- Raw raw;
- std::memset(&raw, 0, sizeof(raw));
- raw.SizeOfStruct = sizeof(raw);
- return raw;
+ModuleInfo::Impl ModuleInfo::create_impl() {
+ Impl impl;
+ std::memset(&impl, 0, sizeof(impl));
+ impl.SizeOfStruct = sizeof(impl);
+ return impl;
}
Address Module::translate_offline_address(Address offline) const {