diff --git a/src/gfx_layout.cpp b/src/gfx_layout.cpp index a47e3c8ace..6a3d1ee966 100644 --- a/src/gfx_layout.cpp +++ b/src/gfx_layout.cpp @@ -569,7 +569,7 @@ static FallbackParagraphLayout *GetParagraphLayout(WChar *buff, WChar *buff_end, * @tparam T The type of layouter we want. */ template -static inline void GetLayouter(Layouter::LineCacheItem &line, const char *str, FontState state) +static inline void GetLayouter(Layouter::LineCacheItem &line, const char *&str, FontState &state) { if (line.buffer != NULL) free(line.buffer);