From 125b9390c45f43563d0ddf097f780d2fdc23cf65 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sat, 25 Apr 2020 13:37:04 +0200 Subject: Fixes missing include and missing html extension logic --- src/util.cpp | 2 +- src/util.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util.cpp b/src/util.cpp index 4324ffd..1016625 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -6592,7 +6592,7 @@ QCString addHtmlExtensionIfMissing(const char *fName) { if (fName==0) return fName; const char *p = strchr(fName,'.'); - if (p) + if (p==nullptr) // no extension { return QCString(fName)+Doxygen::htmlFileExtension; } diff --git a/src/util.h b/src/util.h index 7518330..a34a53c 100644 --- a/src/util.h +++ b/src/util.h @@ -30,6 +30,7 @@ #include "sortdict.h" #include "docparser.h" #include "classdef.h" +#include "arguments.h" //-------------------------------------------------------------------- -- cgit v0.12