Skip to content

Commit a8eac33

Browse files
committed
Fix compiler warning regarding shadowing of types global
1 parent e002723 commit a8eac33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/htmldocvisitor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#include "codefragment.h"
4242

4343
static const int NUM_HTML_LIST_TYPES = 4;
44-
static const char types[][NUM_HTML_LIST_TYPES] = {"1", "a", "i", "A"};
44+
static const char g_types[][NUM_HTML_LIST_TYPES] = {"1", "a", "i", "A"};
4545
enum class contexts_t
4646
{
4747
NONE, // 0
@@ -1020,7 +1020,7 @@ void HtmlDocVisitor::operator()(const DocAutoList &l)
10201020
// A.
10211021
// 1. (repeat)...
10221022
//
1023-
m_t << "<ol type=\"" << types[l.depth() % NUM_HTML_LIST_TYPES] << "\">";
1023+
m_t << "<ol type=\"" << g_types[l.depth() % NUM_HTML_LIST_TYPES] << "\">";
10241024
}
10251025
else
10261026
{

0 commit comments

Comments
 (0)