@@ -882,7 +882,7 @@ void ClassDefImpl::insertBaseClass(ClassDef *cd,const QCString &n,Protection p,
882882 Specifier s,const QCString &t)
883883{
884884 // printf("*** insert base class %s into %s\n",qPrint(cd->name()),qPrint(name()));
885- m_impl->inherits .push_back ( BaseClassDef ( cd,n,p,s,t) );
885+ m_impl->inherits .emplace_back ( cd,n,p,s,t);
886886 m_impl->isSimple = FALSE ;
887887}
888888
@@ -893,7 +893,7 @@ void ClassDefImpl::insertSubClass(ClassDef *cd,Protection p,
893893 // printf("*** insert sub class %s into %s\n",qPrint(cd->name()),qPrint(name()));
894894 bool extractPrivate = Config_getBool (EXTRACT_PRIVATE);
895895 if (!extractPrivate && cd->protection ()==Protection::Private) return ;
896- m_impl->inheritedBy .push_back ( BaseClassDef ( cd,QCString (),p,s,t) );
896+ m_impl->inheritedBy .emplace_back ( cd,QCString (),p,s,t);
897897 m_impl->isSimple = FALSE ;
898898}
899899
@@ -1282,9 +1282,9 @@ static void writeInheritanceSpecifier(OutputList &ol,const BaseClassDef &bcd)
12821282 ol.startTypewriter ();
12831283 ol.docify (" [" );
12841284 StringVector sl;
1285- if (bcd.prot ==Protection::Protected) sl.push_back (" protected" );
1286- else if (bcd.prot ==Protection::Private) sl.push_back (" private" );
1287- if (bcd.virt ==Specifier::Virtual) sl.push_back (" virtual" );
1285+ if (bcd.prot ==Protection::Protected) sl.emplace_back (" protected" );
1286+ else if (bcd.prot ==Protection::Private) sl.emplace_back (" private" );
1287+ if (bcd.virt ==Specifier::Virtual) sl.emplace_back (" virtual" );
12881288 bool first=true ;
12891289 for (const auto &s : sl)
12901290 {
@@ -2535,11 +2535,11 @@ void ClassDefImpl::writeDeclarationLink(OutputList &ol,bool &found,const QCStrin
25352535void ClassDefImpl::addClassAttributes (OutputList &ol) const
25362536{
25372537 StringVector sl;
2538- if (isFinal ()) sl.push_back (" final" );
2539- if (isSealed ()) sl.push_back (" sealed" );
2540- if (isAbstract ()) sl.push_back (" abstract" );
2541- if (isExported ()) sl.push_back (" export" );
2542- if (getLanguage ()==SrcLangExt::IDL && isPublished ()) sl.push_back (" published" );
2538+ if (isFinal ()) sl.emplace_back (" final" );
2539+ if (isSealed ()) sl.emplace_back (" sealed" );
2540+ if (isAbstract ()) sl.emplace_back (" abstract" );
2541+ if (isExported ()) sl.emplace_back (" export" );
2542+ if (getLanguage ()==SrcLangExt::IDL && isPublished ()) sl.emplace_back (" published" );
25432543
25442544 for (const auto &sx : m_impl->qualifiers )
25452545 {
@@ -3130,35 +3130,35 @@ void ClassDefImpl::writeMemberList(OutputList &ol) const
31303130 {
31313131 sl.push_back (theTranslator->trVhdlType (md->getVhdlSpecifiers (),TRUE ).str ()); // append vhdl type
31323132 }
3133- else if (md->isFriend ()) sl.push_back (" friend" );
3134- else if (md->isRelated ()) sl.push_back (" related" );
3133+ else if (md->isFriend ()) sl.emplace_back (" friend" );
3134+ else if (md->isRelated ()) sl.emplace_back (" related" );
31353135 else
31363136 {
31373137 if (Config_getBool (INLINE_INFO) && md->isInline ())
3138- sl.push_back (" inline" );
3139- if (md->isExplicit ()) sl.push_back (" explicit" );
3140- if (md->isMutable ()) sl.push_back (" mutable" );
3141- if (prot==Protection::Protected) sl.push_back (" protected" );
3142- else if (prot==Protection::Private) sl.push_back (" private" );
3143- else if (prot==Protection::Package) sl.push_back (" package" );
3138+ sl.emplace_back (" inline" );
3139+ if (md->isExplicit ()) sl.emplace_back (" explicit" );
3140+ if (md->isMutable ()) sl.emplace_back (" mutable" );
3141+ if (prot==Protection::Protected) sl.emplace_back (" protected" );
3142+ else if (prot==Protection::Private) sl.emplace_back (" private" );
3143+ else if (prot==Protection::Package) sl.emplace_back (" package" );
31443144 if (virt==Specifier::Virtual && getLanguage ()!=SrcLangExt::ObjC)
3145- sl.push_back (" virtual" );
3146- else if (virt==Specifier::Pure) sl.push_back (" pure virtual" );
3147- if (md->isStatic ()) sl.push_back (" static" );
3148- if (md->isSignal ()) sl.push_back (" signal" );
3149- if (md->isSlot ()) sl.push_back (" slot" );
3145+ sl.emplace_back (" virtual" );
3146+ else if (virt==Specifier::Pure) sl.emplace_back (" pure virtual" );
3147+ if (md->isStatic ()) sl.emplace_back (" static" );
3148+ if (md->isSignal ()) sl.emplace_back (" signal" );
3149+ if (md->isSlot ()) sl.emplace_back (" slot" );
31503150// this is the extra member page
3151- if (md->isOptional ()) sl.push_back (" optional" );
3152- if (md->isAttribute ()) sl.push_back (" attribute" );
3153- if (md->isUNOProperty ()) sl.push_back (" property" );
3154- if (md->isReadonly ()) sl.push_back (" readonly" );
3155- if (md->isBound ()) sl.push_back (" bound" );
3156- if (md->isRemovable ()) sl.push_back (" removable" );
3157- if (md->isConstrained ()) sl.push_back (" constrained" );
3158- if (md->isTransient ()) sl.push_back (" transient" );
3159- if (md->isMaybeVoid ()) sl.push_back (" maybevoid" );
3160- if (md->isMaybeDefault ()) sl.push_back (" maybedefault" );
3161- if (md->isMaybeAmbiguous ()) sl.push_back (" maybeambiguous" );
3151+ if (md->isOptional ()) sl.emplace_back (" optional" );
3152+ if (md->isAttribute ()) sl.emplace_back (" attribute" );
3153+ if (md->isUNOProperty ()) sl.emplace_back (" property" );
3154+ if (md->isReadonly ()) sl.emplace_back (" readonly" );
3155+ if (md->isBound ()) sl.emplace_back (" bound" );
3156+ if (md->isRemovable ()) sl.emplace_back (" removable" );
3157+ if (md->isConstrained ()) sl.emplace_back (" constrained" );
3158+ if (md->isTransient ()) sl.emplace_back (" transient" );
3159+ if (md->isMaybeVoid ()) sl.emplace_back (" maybevoid" );
3160+ if (md->isMaybeDefault ()) sl.emplace_back (" maybedefault" );
3161+ if (md->isMaybeAmbiguous ()) sl.emplace_back (" maybeambiguous" );
31623162 }
31633163 bool firstSpan=true ;
31643164 for (const auto &s : sl)
@@ -4093,7 +4093,7 @@ ClassDef *ClassDefImpl::insertTemplateInstance(const QCString &fileName,
40934093 templateClass->setOuterScope (getOuterScope ());
40944094 templateClass->setHidden (isHidden ());
40954095 templateClass->setArtificial (isArtificial ());
4096- m_impl->templateInstances .push_back ( TemplateInstanceDef ( templSpec,templateClass) );
4096+ m_impl->templateInstances .emplace_back ( templSpec,templateClass);
40974097
40984098 // also add nested classes
40994099 for (const auto &innerCd : m_impl->innerClasses )
0 commit comments