Skip to content

Commit 46110cc

Browse files
committed
Fix cxx20 compiler errors.
1 parent fb45304 commit 46110cc

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

ui/util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ namespace fmt
118118
template<typename... T>
119119
QString qformat(format_string<T...> fmt, T&&... args)
120120
{
121-
return QString::fromStdString(vformat(fmt, make_format_args(args...)));
121+
return QString::fromStdString(vformat(fmt, fmt::make_format_args(args...)));
122122
}
123123
}
124124

view/sharedcache/core/VirtualMemory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
void VirtualMemory::MapRegion(WeakFileAccessor fileAccessor, AddressRange mappedRange, uint64_t fileOffset)
44
{
55
// Create a new VirtualMemoryRegion object
6-
VirtualMemoryRegion region {fileOffset, std::move(fileAccessor)};
6+
VirtualMemoryRegion region(fileOffset, std::move(fileAccessor));
77

88
// TODO: How to handle overlapping regions?
99
for (const auto& [existingRange, existingRegion] : m_regions)

view/sharedcache/core/VirtualMemory.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ struct VirtualMemoryRegion
2626
// NOTE: Any read through this should be seeked to `fileOffset`
2727
WeakFileAccessor fileAccessor;
2828

29+
VirtualMemoryRegion(uint64_t offset, WeakFileAccessor accessor)
30+
: fileOffset(offset), fileAccessor(std::move(accessor)) {}
31+
32+
2933
VirtualMemoryRegion(const VirtualMemoryRegion&) = default;
3034

3135
VirtualMemoryRegion& operator=(const VirtualMemoryRegion&) = default;

0 commit comments

Comments
 (0)