mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
Use const references for string function arguments
This commit is contained in:
@@ -40,7 +40,7 @@ class Font : public Module
|
||||
public:
|
||||
|
||||
virtual Rasterizer *newRasterizer(Data *data, int size) = 0;
|
||||
virtual Rasterizer *newRasterizer(love::image::ImageData *data, std::string glyphs) = 0;
|
||||
virtual Rasterizer *newRasterizer(love::image::ImageData *data, const std::string &glyphs) = 0;
|
||||
virtual Rasterizer *newRasterizer(love::image::ImageData *data, unsigned int *glyphs, int length) = 0;
|
||||
virtual GlyphData *newGlyphData(Rasterizer *r, unsigned int glyph) = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user