From a988b90affdc65892437ea7d172c50c6cebb874e Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Tue, 28 May 2019 18:29:45 +0100 Subject: [PATCH] Updated the breaking changes doc to include recent increased unique_ptr usage --- BREAKING-CHANGES.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/BREAKING-CHANGES.txt b/BREAKING-CHANGES.txt index 9d3bde58fc..40441fe0c3 100644 --- a/BREAKING-CHANGES.txt +++ b/BREAKING-CHANGES.txt @@ -4,6 +4,27 @@ JUCE breaking changes Develop ======= +Change +------ +JUCE is moving towards using C++11 pointer container types instead of passing +raw pointers as arguments and return values. + +Possible Issues +--------------- +You will need to change your code to pass std::unique_ptr into and out of +various functions across JUCE's API. + +Workaround +---------- +None + +Rationale +--------- +Indicating ownership through the transfer of smart pointer types has been part +of mainstream C++ for a long time and this change enforces memory safety by +default in most situations. + + Change ------ SystemTrayIconComponent::setIconImage now takes two arguments, rather than one.