summaryrefslogtreecommitdiff
path: root/src/fontcache.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-01-06 22:56:44 +0100
committerMichael Lutz <michi@icosahedron.de>2021-02-13 20:09:14 +0100
commit5ad16409847a17534389054a1b7f5fb83703fb4d (patch)
tree83fc638e56b16c9fa561ed3551e2d83d7c701dfa /src/fontcache.h
parent2b0200d4297a67916cf3b955adc474e88e327cf0 (diff)
downloadopenttd-5ad16409847a17534389054a1b7f5fb83703fb4d.tar.xz
Codechange: Make OS font handle of the FontCache read-only.
Diffstat (limited to 'src/fontcache.h')
-rw-r--r--src/fontcache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontcache.h b/src/fontcache.h
index 4c44876da..fac08a353 100644
--- a/src/fontcache.h
+++ b/src/fontcache.h
@@ -127,7 +127,7 @@ public:
* Get the native OS font handle, if there is one.
* @return Opaque OS font handle.
*/
- virtual void *GetOSHandle()
+ virtual const void *GetOSHandle()
{
return nullptr;
}