aboutsummaryrefslogtreecommitdiff
path: root/engines/chewy
diff options
context:
space:
mode:
authorFilippos Karapetis2016-10-07 03:13:16 +0300
committerFilippos Karapetis2016-10-07 03:13:16 +0300
commit7002ede1ed03b1588e18ff41129e000a63081792 (patch)
treea786f1a2527063480e18cf0dae2cc72760e20acf /engines/chewy
parentcf7c010d47e8d2babdd051aaccc4b26e42468bb4 (diff)
downloadscummvm-rg350-7002ede1ed03b1588e18ff41129e000a63081792.tar.gz
scummvm-rg350-7002ede1ed03b1588e18ff41129e000a63081792.tar.bz2
scummvm-rg350-7002ede1ed03b1588e18ff41129e000a63081792.zip
CHEWY: Const correctness
Diffstat (limited to 'engines/chewy')
-rw-r--r--engines/chewy/text.cpp2
-rw-r--r--engines/chewy/text.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/chewy/text.cpp b/engines/chewy/text.cpp
index 5a4a526eee..d56246f4ed 100644
--- a/engines/chewy/text.cpp
+++ b/engines/chewy/text.cpp
@@ -181,7 +181,7 @@ Font::~Font() {
_fontSurface.free();
}
-::Graphics::Surface *Font::getLine(Common::String text) {
+::Graphics::Surface *Font::getLine(const Common::String text) {
::Graphics::Surface *line = new ::Graphics::Surface();
line->create(text.size() * _width, _height, ::Graphics::PixelFormat::createFormatCLUT8());
diff --git a/engines/chewy/text.h b/engines/chewy/text.h
index f729205a93..564f6011b3 100644
--- a/engines/chewy/text.h
+++ b/engines/chewy/text.h
@@ -100,7 +100,7 @@ public:
Font(Common::String filename);
virtual ~Font();
- ::Graphics::Surface *getLine(Common::String text);
+ ::Graphics::Surface *getLine(const Common::String text);
private:
uint16 _count, _first, _last, _width, _height;