mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Fix build with type aliases and generated .cpp files
These need to remain in the header file
This commit is contained in:
parent
4b2d572732
commit
8146799e8a
1 changed files with 6 additions and 2 deletions
|
@ -102,11 +102,15 @@ mod cpp_ast {
|
|||
|
||||
let mut i = 0;
|
||||
while i < self.definitions.len() {
|
||||
if matches!(&self.definitions[i], Declaration::Function(fun) if fun.template_parameters.is_some())
|
||||
{
|
||||
if matches!(
|
||||
&self.definitions[i],
|
||||
Declaration::Function(Function { template_parameters: Some(..), .. })
|
||||
| Declaration::TypeAlias(..)
|
||||
) {
|
||||
i += 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
definitions.push(self.definitions.remove(i));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue