summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-08-01 16:00:56 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-08-01 16:00:56 (GMT)
commit71f92321cf6e2c88b1ce01e6ff6cfe73651e8022 (patch)
tree1411ff947a23aeb9a79092a1df5a9af28e25d6f5
parentb2a69f2504808f5cc62105eeb08dbb5d9689b82c (diff)
downloadDoxygen-71f92321cf6e2c88b1ce01e6ff6cfe73651e8022.zip
Doxygen-71f92321cf6e2c88b1ce01e6ff6cfe73651e8022.tar.gz
Doxygen-71f92321cf6e2c88b1ce01e6ff6cfe73651e8022.tar.bz2
Compiler warning in htmlhelp.cpp
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\""; | ^~~~~~~~~~~~~~~ ```
-rw-r--r--src/htmlhelp.cpp4
1 files 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 = "";