aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/winapi
diff options
context:
space:
mode:
Diffstat (limited to 'include/winapi')
-rw-r--r--include/winapi/handle.hpp2
-rw-r--r--include/winapi/shmem.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/winapi/handle.hpp b/include/winapi/handle.hpp
index 7af7252..23e5a3c 100644
--- a/include/winapi/handle.hpp
+++ b/include/winapi/handle.hpp
@@ -84,7 +84,7 @@ public:
template <typename CharT,
typename Traits = std::char_traits<CharT>,
typename Allocator = std::allocator<CharT>>
- void write(const std::basic_string<CharT, Traits, Allocator> src) const {
+ void write(const std::basic_string<CharT, Traits, Allocator>& src) const {
write(std::basic_string_view<CharT>{src});
}
diff --git a/include/winapi/shmem.hpp b/include/winapi/shmem.hpp
index 3290cf3..aecae85 100644
--- a/include/winapi/shmem.hpp
+++ b/include/winapi/shmem.hpp
@@ -95,7 +95,7 @@ public:
T& operator*() const { return get(); }
private:
- explicit SharedObject(SharedMemory&& shmem) : m_shmem(std::move(shmem)) {}
+ explicit SharedObject(SharedMemory&& shmem) : m_shmem{std::move(shmem)} {}
SharedMemory m_shmem;
// Destruct only once, no matter the number of mappings.