Avoid slicing in operator==
Change-Id: I6f0f1b67dee717d9fa16f4ae9e7b6441d7c5002b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172197 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
@@ -1954,8 +1954,8 @@ void PlainStructType::dumpHppFile(
|
||||
out << indent() << "return ";
|
||||
bFirst = true;
|
||||
if (!base.isEmpty()) {
|
||||
out << "operator==( static_cast< " << codemaker::cpp::scopedCppName(u2b(base))
|
||||
<< ">(the_lhs), static_cast< " << codemaker::cpp::scopedCppName(u2b(base)) << ">(the_rhs) )\n";
|
||||
out << "operator==( static_cast<const " << codemaker::cpp::scopedCppName(u2b(base))
|
||||
<< "&>(the_lhs), static_cast<const " << codemaker::cpp::scopedCppName(u2b(base)) << "&>(the_rhs) )\n";
|
||||
bFirst = false;
|
||||
}
|
||||
for (const unoidl::PlainStructTypeEntity::Member& member : entity_->getDirectMembers()) {
|
||||
|
Reference in New Issue
Block a user