diff --git a/CHANGELOG b/CHANGELOG index 6367663e..c564b52e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +0.7.1 - 10.2.2017 +Fixed: +- Crashes when calling certain constructors and destructors. + 0.7.0 - 5.2.2017 Added: - Bindings for Qt 5.8. diff --git a/QtSharp.CLI/QtSharp.CLI.csproj b/QtSharp.CLI/QtSharp.CLI.csproj index b1a715d0..8fe85a0f 100644 --- a/QtSharp.CLI/QtSharp.CLI.csproj +++ b/QtSharp.CLI/QtSharp.CLI.csproj @@ -63,27 +63,27 @@ - ..\packages\CppSharp.0.8.3\lib\CppSharp.dll + ..\packages\CppSharp.0.8.4\lib\CppSharp.dll True - ..\packages\CppSharp.0.8.3\lib\CppSharp.AST.dll + ..\packages\CppSharp.0.8.4\lib\CppSharp.AST.dll True - ..\packages\CppSharp.0.8.3\lib\CppSharp.Generator.dll + ..\packages\CppSharp.0.8.4\lib\CppSharp.Generator.dll True - ..\packages\CppSharp.0.8.3\lib\CppSharp.Parser.dll + ..\packages\CppSharp.0.8.4\lib\CppSharp.Parser.dll True - ..\packages\CppSharp.0.8.3\lib\CppSharp.Parser.CLI.dll + ..\packages\CppSharp.0.8.4\lib\CppSharp.Parser.CLI.dll True - ..\packages\CppSharp.0.8.3\lib\CppSharp.Runtime.dll + ..\packages\CppSharp.0.8.4\lib\CppSharp.Runtime.dll True diff --git a/QtSharp.CLI/packages.config b/QtSharp.CLI/packages.config index 6e343237..6c557ae8 100644 --- a/QtSharp.CLI/packages.config +++ b/QtSharp.CLI/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file diff --git a/QtSharp.sln b/QtSharp.sln index b8c6fc06..65538bf5 100644 --- a/QtSharp.sln +++ b/QtSharp.sln @@ -44,12 +44,12 @@ Global {DBDEB3EE-2EB3-4F03-8276-A7D5A350EB95}.Release|Any CPU.Build.0 = Release|Any CPU {DBDEB3EE-2EB3-4F03-8276-A7D5A350EB95}.Release|x86.ActiveCfg = Release|x86 {DBDEB3EE-2EB3-4F03-8276-A7D5A350EB95}.Release|x86.Build.0 = Release|x86 - {5E8F503D-1B37-4298-855D-06F81B5B4630}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5E8F503D-1B37-4298-855D-06F81B5B4630}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5E8F503D-1B37-4298-855D-06F81B5B4630}.Debug|x86.ActiveCfg = Debug|Any CPU - {5E8F503D-1B37-4298-855D-06F81B5B4630}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5E8F503D-1B37-4298-855D-06F81B5B4630}.Release|Any CPU.Build.0 = Release|Any CPU - {5E8F503D-1B37-4298-855D-06F81B5B4630}.Release|x86.ActiveCfg = Release|Any CPU + {5E8F503D-1B37-4298-855D-06F81B5B4630}.Debug|Any CPU.ActiveCfg = Debug|x86 + {5E8F503D-1B37-4298-855D-06F81B5B4630}.Debug|x86.ActiveCfg = Debug|x86 + {5E8F503D-1B37-4298-855D-06F81B5B4630}.Debug|x86.Build.0 = Debug|x86 + {5E8F503D-1B37-4298-855D-06F81B5B4630}.Release|Any CPU.ActiveCfg = Release|x86 + {5E8F503D-1B37-4298-855D-06F81B5B4630}.Release|x86.ActiveCfg = Release|x86 + {5E8F503D-1B37-4298-855D-06F81B5B4630}.Release|x86.Build.0 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/QtSharp/GenerateEventEventsPass.cs b/QtSharp/GenerateEventEventsPass.cs index 45c67eb9..2ea776fc 100644 --- a/QtSharp/GenerateEventEventsPass.cs +++ b/QtSharp/GenerateEventEventsPass.cs @@ -29,8 +29,8 @@ public override bool VisitTranslationUnit(TranslationUnit unit) private void OnUnitGenerated(GeneratorOutput generatorOutput) { - var blocks = (from template in generatorOutput.Templates - from block in template.FindBlocks(CSharpBlockKind.Method) + var blocks = (from output in generatorOutput.Outputs + from block in output.FindBlocks(CSharpBlockKind.Method) where this.events.Contains(block.Object) select block).ToList(); foreach (var block in blocks) diff --git a/QtSharp/GenerateSignalEventsPass.cs b/QtSharp/GenerateSignalEventsPass.cs index 7f1f5ee0..34d02ada 100644 --- a/QtSharp/GenerateSignalEventsPass.cs +++ b/QtSharp/GenerateSignalEventsPass.cs @@ -39,8 +39,8 @@ private void OnUnitGenerated(GeneratorOutput generatorOutput) private void GenerateSignalEvents(GeneratorOutput generatorOutput) { - foreach (var block in from template in generatorOutput.Templates - from block in template.FindBlocks(CSharpBlockKind.Event) + foreach (var block in from output in generatorOutput.Outputs + from block in output.FindBlocks(CSharpBlockKind.Event) select block) { Event @event = (Event) block.Object; @@ -118,13 +118,12 @@ from e in @event.Parameters }}", fullNameBuilder, finalName, signature)); } } - var qtMetacall = ( - from template in generatorOutput.Templates - from block in template.FindBlocks(CSharpBlockKind.Method) - let declaration = block.Object as Declaration - where declaration != null && declaration.Name == "QtMetacall" && - declaration.Namespace.Name == "QObject" - select block).FirstOrDefault(); + var qtMetacall = (from output in generatorOutput.Outputs + from block in output.FindBlocks(CSharpBlockKind.Method) + let declaration = block.Object as Declaration + where declaration != null && declaration.Name == "QtMetacall" && + declaration.Namespace.Name == "QObject" + select block).FirstOrDefault(); if (qtMetacall != null) { qtMetacall.Text.StringBuilder.Replace("return __ret;", "return HandleQtMetacall(__ret, _0, _2);"); diff --git a/QtSharp/QtSharp.csproj b/QtSharp/QtSharp.csproj index e6863084..cc98dc7e 100644 --- a/QtSharp/QtSharp.csproj +++ b/QtSharp/QtSharp.csproj @@ -38,27 +38,27 @@ - ..\packages\CppSharp.0.8.3\lib\CppSharp.dll + ..\packages\CppSharp.0.8.4\lib\CppSharp.dll True - ..\packages\CppSharp.0.8.3\lib\CppSharp.AST.dll + ..\packages\CppSharp.0.8.4\lib\CppSharp.AST.dll True - ..\packages\CppSharp.0.8.3\lib\CppSharp.Generator.dll + ..\packages\CppSharp.0.8.4\lib\CppSharp.Generator.dll True - ..\packages\CppSharp.0.8.3\lib\CppSharp.Parser.dll + ..\packages\CppSharp.0.8.4\lib\CppSharp.Parser.dll True - ..\packages\CppSharp.0.8.3\lib\CppSharp.Parser.CLI.dll + ..\packages\CppSharp.0.8.4\lib\CppSharp.Parser.CLI.dll True - ..\packages\CppSharp.0.8.3\lib\CppSharp.Runtime.dll + ..\packages\CppSharp.0.8.4\lib\CppSharp.Runtime.dll True diff --git a/QtSharp/packages.config b/QtSharp/packages.config index a46bf662..d5387267 100644 --- a/QtSharp/packages.config +++ b/QtSharp/packages.config @@ -1,7 +1,7 @@  - +