Duplicate base checking code already covers check for opt base != XInterface

Change-Id: Icd47d87f93641a0b24a96a4be8d3d120f0405f2d
This commit is contained in:
Stephan Bergmann
2013-11-26 11:03:41 +01:00
parent 40e98f439f
commit e14e4f5351
2 changed files with 8 additions and 1 deletions
@@ -269,3 +269,11 @@ interface Derived {
interface Hidden;
interface Base;
};
EXPECT FAILURE "interfaceinheritance.tests 30":
interface Base {};
interface Derived {
interface Base;
[optional] interface com::sun::star::uno::XInterface;
};
-1
View File
@@ -4113,7 +4113,6 @@ bool SourceProviderInterfaceTypeEntityPad::addDirectBase(
addOptionalBaseMembers(
location, yyscanner, data, base.name, base.entity);
}
//TODO: check that opt base != XInterface
(optional ? directOptionalBases : directMandatoryBases).push_back(base);
return true;
}