summarylogtreecommitdiffstats
path: root/PathFormatter.patch
blob: a752be0affdebf441e2e7679f79271bae88c5550 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 9c8516b7dfaa101f8c90b3c8fd3e8b816e2c025c Mon Sep 17 00:00:00 2001
From: Philipp Wollschlegel <folken@kabelsalat.ch>
Date: Wed, 11 Sep 2024 13:15:42 +0200
Subject: [PATCH] lib/fmt/PathFormatter.hpp: mark format const

---
 src/lib/fmt/PathFormatter.hpp | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/lib/fmt/PathFormatter.hpp b/src/lib/fmt/PathFormatter.hpp
index c3da4b605d..cf129879bc 100644
--- a/src/lib/fmt/PathFormatter.hpp
+++ b/src/lib/fmt/PathFormatter.hpp
@@ -10,10 +10,11 @@
 template<>
 struct fmt::formatter<Path> : formatter<string_view>
 {
-	template<typename FormatContext>
-	auto format(Path path, FormatContext &ctx) {
-		return formatter<string_view>::format(path.ToUTF8(), ctx);
-	}
+  template <typename FormatContext>
+  auto format(Path path, FormatContext &ctx) const
+  {
+    return formatter<string_view>::format(path.ToUTF8(), ctx);
+  }
 };
 
 template<>
-- 
2.51.0