summaryrefslogtreecommitdiff
path: root/src/gfx_layout.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-16 19:59:06 +0000
committerrubidium <rubidium@openttd.org>2013-11-16 19:59:06 +0000
commitb9e4697d8a3eb40495a263936861f33b31fc761e (patch)
tree0a1145b6a2b7982153ac986075227cd51ac2b440 /src/gfx_layout.h
parent16ecd533f35fe666dced69b5676bec11ee80d771 (diff)
downloadopenttd-b9e4697d8a3eb40495a263936861f33b31fc761e.tar.xz
(svn r26015) -Codechange: some constificaton
Diffstat (limited to 'src/gfx_layout.h')
-rw-r--r--src/gfx_layout.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gfx_layout.h b/src/gfx_layout.h
index fb8866cc8..d57553e34 100644
--- a/src/gfx_layout.h
+++ b/src/gfx_layout.h
@@ -131,10 +131,10 @@ public:
public:
VisualRun(Font *font, const WChar *chars, int glyph_count, int x);
~VisualRun();
- Font *getFont() const;
+ const Font *getFont() const;
int getGlyphCount() const;
const GlyphID *getGlyphs() const;
- float *getPositions() const;
+ const float *getPositions() const;
int getLeading() const;
const int *getGlyphToCharMap() const;
};
@@ -145,7 +145,7 @@ public:
int getLeading() const;
int getWidth() const;
int countRuns() const;
- VisualRun *getVisualRun(int run) const;
+ const VisualRun *getVisualRun(int run) const;
};
const WChar *buffer_begin; ///< Begin of the buffer.
@@ -154,7 +154,7 @@ public:
ParagraphLayout(WChar *buffer, int length, FontMap &runs);
void reflow();
- Line *nextLine(int max_width);
+ const Line *nextLine(int max_width);
};
#endif /* !WITH_ICU */
@@ -163,7 +163,7 @@ public:
*
* It also accounts for the memory allocations and frees.
*/
-class Layouter : public AutoDeleteSmallVector<ParagraphLayout::Line *, 4> {
+class Layouter : public AutoDeleteSmallVector<const ParagraphLayout::Line *, 4> {
#ifdef WITH_ICU
typedef UChar CharType; ///< The type of character used within the layouter.
#else /* WITH_ICU */