summaryrefslogtreecommitdiffstats
path: root/src/classdef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-07-29 21:03:09 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-07-29 21:03:09 (GMT)
commit25d7cd240edb02510bed86677d3021a2cfd96cd1 (patch)
treeb23024c9f5ff4a188dc7446a6279c44e2bac86b8 /src/classdef.cpp
parentc7952fe7141cdc8762c907a09338f98322f15933 (diff)
downloadDoxygen-25d7cd240edb02510bed86677d3021a2cfd96cd1.zip
Doxygen-25d7cd240edb02510bed86677d3021a2cfd96cd1.tar.gz
Doxygen-25d7cd240edb02510bed86677d3021a2cfd96cd1.tar.bz2
Improved constness and avoid using non-const members of aliases
Diffstat (limited to 'src/classdef.cpp')
-rw-r--r--src/classdef.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp
index a7f24ed..a7b59c1 100644
--- a/src/classdef.cpp
+++ b/src/classdef.cpp
@@ -3330,7 +3330,7 @@ void ClassDefImpl::addTypeConstraint(const QCString &typeConstraint,const QCStri
//printf("addTypeContraint(%s,%s)\n",type.data(),typeConstraint.data());
static bool hideUndocRelation = Config_getBool(HIDE_UNDOC_RELATIONS);
if (typeConstraint.isEmpty() || type.isEmpty()) return;
- ClassDef *cd = getResolvedClass(this,getFileDef(),typeConstraint);
+ ClassDef *cd = const_cast<ClassDef*>(getResolvedClass(this,getFileDef(),typeConstraint));
if (cd==0 && !hideUndocRelation)
{
cd = new ClassDefImpl(getDefFileName(),getDefLine(),getDefColumn(),typeConstraint,ClassDef::Class);