summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2018-11-25 17:13:31 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2018-11-25 17:13:31 (GMT)
commitf91bf62416c80cbe3bce8c428e0d3da2afa0d55f (patch)
tree6537e75dfdbfd8c623c23ecf1775ae42e4559ffb /src/docparser.cpp
parent847305d5d6d0601c5370675284787ca48743b21e (diff)
downloadDoxygen-f91bf62416c80cbe3bce8c428e0d3da2afa0d55f.zip
Doxygen-f91bf62416c80cbe3bce8c428e0d3da2afa0d55f.tar.gz
Doxygen-f91bf62416c80cbe3bce8c428e0d3da2afa0d55f.tar.bz2
Restructured code to avoid the need for global state
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r--src/docparser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp
index 39978de..f20c22d 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -7463,7 +7463,7 @@ QString::Direction getTextDirByConfig(const DocPara *para, int nodeIndex)
return QString::DirNeutral;
}
-QCString getDirHtmlClassOfNode(QString::Direction textDir, const char *initValue)
+QCString getDirHtmlClassOfNode(QString::Direction textDir, const QCString &initValue)
{
QCString classFromDir;
if (textDir == QString::DirLTR)
@@ -7473,9 +7473,9 @@ QCString getDirHtmlClassOfNode(QString::Direction textDir, const char *initValue
else
classFromDir = "";
- if (initValue != NULL && !classFromDir.isEmpty())
+ if (initValue && !classFromDir.isEmpty())
return QCString(" class=\"") + initValue + " " + classFromDir + "\"";
- if (initValue != NULL)
+ if (initValue)
return QCString(" class=\"") + initValue + "\"";
if (!classFromDir.isEmpty())
return QCString(" class=\"") + classFromDir + "\"";