From 020f5c01d2f849bde3c4d34bfa05093410be9c0b Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Mon, 29 Dec 2014 15:18:40 +0400 Subject: [PATCH] Report font tables are R/O blobs There is no point in modifying font tables, so mark them RO for clarity. Change-Id: I8ddbda9ace9c5a0eeabc0c5e5f64558060b5ee69 Reviewed-by: Lars Knoll --- src/gui/text/qharfbuzzng.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/text/qharfbuzzng.cpp b/src/gui/text/qharfbuzzng.cpp index 16c45e642b..3533cc77e6 100644 --- a/src/gui/text/qharfbuzzng.cpp +++ b/src/gui/text/qharfbuzzng.cpp @@ -590,7 +590,7 @@ _hb_qt_reference_table(hb_face_t * /*face*/, hb_tag_t tag, void *user_data) length = 0; return hb_blob_create(const_cast(buffer), length, - HB_MEMORY_MODE_WRITABLE, + HB_MEMORY_MODE_READONLY, buffer, free); }