diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-07-29 21:03:09 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-07-29 21:03:09 (GMT) |
commit | 25d7cd240edb02510bed86677d3021a2cfd96cd1 (patch) | |
tree | b23024c9f5ff4a188dc7446a6279c44e2bac86b8 /src/classdef.cpp | |
parent | c7952fe7141cdc8762c907a09338f98322f15933 (diff) | |
download | Doxygen-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.cpp | 2 |
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); |