From eee8ef9dce40c3f5be80f38822fe7e37ddadb432 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 16 Nov 2015 16:03:44 +0100 Subject: GRAPHICS: Make PixelFormat::toString const. --- graphics/pixelformat.cpp | 2 +- graphics/pixelformat.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/graphics/pixelformat.cpp b/graphics/pixelformat.cpp index e7b5401ed6..a712813b45 100644 --- a/graphics/pixelformat.cpp +++ b/graphics/pixelformat.cpp @@ -25,7 +25,7 @@ namespace Graphics { -Common::String PixelFormat::toString() { +Common::String PixelFormat::toString() const { if (bytesPerPixel == 1) return "CLUT8"; diff --git a/graphics/pixelformat.h b/graphics/pixelformat.h index 3e6c53b05f..9dd06241b7 100644 --- a/graphics/pixelformat.h +++ b/graphics/pixelformat.h @@ -262,7 +262,7 @@ struct PixelFormat { return 0; } - Common::String toString(); + Common::String toString() const; }; } // End of namespace Graphics -- cgit v1.2.3