From 71f92321cf6e2c88b1ce01e6ff6cfe73651e8022 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sat, 1 Aug 2020 18:00:56 +0200 Subject: Compiler warning in htmlhelp.cpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We get the warning like: ``` src/htmlhelp.cpp:473:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 473 | char *hhcFile = "\"index.hhc\""; | ^~~~~~~~~~~~~~~ ``` --- src/htmlhelp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/htmlhelp.cpp b/src/htmlhelp.cpp index f5856e5..0c580a5 100644 --- a/src/htmlhelp.cpp +++ b/src/htmlhelp.cpp @@ -470,8 +470,8 @@ void HtmlHelp::createProjectFile() { FTextStream t(&f); - char *hhcFile = "\"index.hhc\""; - char *hhkFile = "\"index.hhk\""; + const char *hhcFile = "\"index.hhc\""; + const char *hhkFile = "\"index.hhk\""; int hhkPresent = index->dictCount(); if (!ctsItemPresent) hhcFile = ""; if (!hhkPresent) hhkFile = ""; -- cgit v0.12