Use const references for string function arguments

This commit is contained in:
Alex Szpakowski
2013-01-23 15:28:11 -04:00
parent 191af5cd5b
commit 383bed8098
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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;