Skip to content

Commit 87e6838

Browse files
committed
issue doxygen#11504 References not generated when tilde and dot in directory name
Only search for the extension in the filename, not the complete name.
1 parent 422b5a8 commit 87e6838

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/definition.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,9 @@ class DefinitionImpl::Private
112112
void DefinitionImpl::Private::setDefFileName(const QCString &df)
113113
{
114114
defFileName = df;
115-
int lastDot = defFileName.findRev('.');
116-
if (lastDot!=-1)
117-
{
118-
defFileExt = defFileName.mid(lastDot);
119-
}
115+
FileInfo fi(df.data());
116+
QCString ext = fi.extension(false);
117+
if (!ext.isEmpty()) defFileExt = "." + ext;
120118
}
121119

122120
void DefinitionImpl::Private::init(const QCString &df, const QCString &n)

0 commit comments

Comments
 (0)