diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-16 15:47:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-16 20:17:39 +0100 |
commit | 9bd827270646be509060ddb92be4eae20b277b91 (patch) | |
tree | f68cb9b3296620ba15fc0efa57787176374abe80 /unoidl/source | |
parent | 1607033e581ee1fc4aab5564cbf8fa89d7094ec7 (diff) |
loplugin:referencecasting in UnoControls..unoxml
Change-Id: I42f216b6115be693a4e57d70f6cbbf11b62ec185
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110998
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unoidl/source')
-rw-r--r-- | unoidl/source/sourceprovider-parser.y | 2 | ||||
-rw-r--r-- | unoidl/source/unoidl-write.cxx | 22 |
2 files changed, 12 insertions, 12 deletions
diff --git a/unoidl/source/sourceprovider-parser.y b/unoidl/source/sourceprovider-parser.y index 9d1dd5ae49d0..326d0dd7a8c9 100644 --- a/unoidl/source/sourceprovider-parser.y +++ b/unoidl/source/sourceprovider-parser.y @@ -1560,7 +1560,7 @@ interfaceDefn: YYERROR; } data->entities[data->currentName] = unoidl::detail::SourceProviderEntity( - pad.get()); + pad); } '{' interfaceMembers '}' ';' { diff --git a/unoidl/source/unoidl-write.cxx b/unoidl/source/unoidl-write.cxx index 1afca0e218b0..8ffcaa040d7d 100644 --- a/unoidl/source/unoidl-write.cxx +++ b/unoidl/source/unoidl-write.cxx @@ -467,7 +467,7 @@ sal_uInt64 writeMap( bool ann = !ent2->getAnnotations().empty() || hasNotEmptyAnnotations(ent2->getMembers()); i.second.dataOffset = getOffset(file); - writeKind(file, ent2.get(), ann); + writeKind(file, ent2, ann); write32(file, ent2->getMembers().size()); for (auto & j: ent2->getMembers()) { writeIdxName(file, j.name); @@ -486,7 +486,7 @@ sal_uInt64 writeMap( hasNotEmptyAnnotations(ent2->getDirectMembers()); i.second.dataOffset = getOffset(file); writeKind( - file, ent2.get(), ann, !ent2->getDirectBase().isEmpty()); + file, ent2, ann, !ent2->getDirectBase().isEmpty()); if (!ent2->getDirectBase().isEmpty()) { writeIdxName(file, ent2->getDirectBase()); } @@ -509,7 +509,7 @@ sal_uInt64 writeMap( bool ann = !ent2->getAnnotations().empty() || hasNotEmptyAnnotations(ent2->getMembers()); i.second.dataOffset = getOffset(file); - writeKind(file, ent2.get(), ann); + writeKind(file, ent2, ann); write32(file, ent2->getTypeParameters().size()); for (auto & j: ent2->getTypeParameters()) { writeIdxName(file, j); @@ -537,7 +537,7 @@ sal_uInt64 writeMap( hasNotEmptyAnnotations(ent2->getDirectMembers()); i.second.dataOffset = getOffset(file); writeKind( - file, ent2.get(), ann, !ent2->getDirectBase().isEmpty()); + file, ent2, ann, !ent2->getDirectBase().isEmpty()); if (!ent2->getDirectBase().isEmpty()) { writeIdxName(file, ent2->getDirectBase()); } @@ -561,7 +561,7 @@ sal_uInt64 writeMap( hasNotEmptyAnnotations(ent2->getDirectAttributes()) || hasNotEmptyAnnotations(ent2->getDirectMethods()); i.second.dataOffset = getOffset(file); - writeKind(file, ent2.get(), ann); + writeKind(file, ent2, ann); write32(file, ent2->getDirectMandatoryBases().size()); for (auto & j: ent2->getDirectMandatoryBases()) { writeIdxName(file, j.name); @@ -622,7 +622,7 @@ sal_uInt64 writeMap( i.second.entity.get())); bool ann = !ent2->getAnnotations().empty(); i.second.dataOffset = getOffset(file); - writeKind(file, ent2.get(), ann); + writeKind(file, ent2, ann); writeIdxName(file, ent2->getType()); writeAnnotations(file, ann, ent2->getAnnotations()); break; @@ -709,7 +709,7 @@ sal_uInt64 writeMap( } bool ann = !ent2->getAnnotations().empty(); i.second.dataOffset = getOffset(file); - writeKind(file, ent2.get(), ann); + writeKind(file, ent2, ann); write32(file, cmap.size()); // overflow from std::map::size_type -> sal_uInt64 is // unrealistic @@ -733,7 +733,7 @@ sal_uInt64 writeMap( if (!dfltCtor && !ann) ann = hasNotEmptyAnnotations(ent2->getConstructors()); i.second.dataOffset = getOffset(file); - writeKind(file, ent2.get(), ann, dfltCtor); + writeKind(file, ent2, ann, dfltCtor); writeIdxName(file, ent2->getBase()); if (!dfltCtor) { write32(file, ent2->getConstructors().size()); @@ -777,7 +777,7 @@ sal_uInt64 writeMap( hasNotEmptyAnnotations(ent2->getDirectOptionalBaseInterfaces()) || hasNotEmptyAnnotations(ent2->getDirectProperties()); i.second.dataOffset = getOffset(file); - writeKind(file, ent2.get(), ann); + writeKind(file, ent2, ann); write32(file, ent2->getDirectMandatoryBaseServices().size()); for (auto & j: ent2->getDirectMandatoryBaseServices()) { writeIdxName(file, j.name); @@ -815,7 +815,7 @@ sal_uInt64 writeMap( i.second.entity.get())); bool ann = !ent2->getAnnotations().empty(); i.second.dataOffset = getOffset(file); - writeKind(file, ent2.get(), ann); + writeKind(file, ent2, ann); writeIdxName(file, ent2->getBase()); writeAnnotations(file, ann, ent2->getAnnotations()); break; @@ -827,7 +827,7 @@ sal_uInt64 writeMap( i.second.entity.get())); bool ann = !ent2->getAnnotations().empty(); i.second.dataOffset = getOffset(file); - writeKind(file, ent2.get(), ann); + writeKind(file, ent2, ann); writeIdxName(file, ent2->getBase()); writeAnnotations(file, ann, ent2->getAnnotations()); break; |