Skip to content

Commit 0d81e1f

Browse files
Fixing headless build
1 parent 843482c commit 0d81e1f

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

.github/workflows/cmake.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ jobs:
3030
run: |
3131
sudo apt-get update
3232
sudo apt install libasound2-dev libx11-dev libxcomposite-dev libxcursor-dev libxext-dev libxinerama-dev libxrandr-dev libxrender-dev libfreetype6-dev libglu1-mesa-dev libjack-jackd2-dev
33-
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 9
34-
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9
3533
3634
- name: Get latest CMake
3735
uses: lukka/get-cmake@latest

Plugin/Source/Headless/UnitTests/MixGroupsTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class MixGroupsTest : public UnitTest
2828
std::unique_ptr<Proc> createPlugin()
2929
{
3030
auto proc = createPluginFilterOfType (AudioProcessor::WrapperType::wrapperType_Standalone);
31-
std::unique_ptr<Proc> plugin (dynamic_cast<Proc*> (proc));
31+
std::unique_ptr<Proc> plugin (dynamic_cast<Proc*> (proc.release()));
3232
return std::move (plugin);
3333
}
3434

Plugin/Source/Headless/UnitTests/MultiChannelTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class MultiChannelTest : public UnitTest
1919
std::unique_ptr<Proc> createPlugin()
2020
{
2121
auto proc = createPluginFilterOfType (AudioProcessor::WrapperType::wrapperType_Standalone);
22-
std::unique_ptr<Proc> plugin (dynamic_cast<Proc*> (proc));
22+
std::unique_ptr<Proc> plugin (dynamic_cast<Proc*> (proc.release()));
2323
return std::move (plugin);
2424
}
2525

Plugin/Source/Headless/UnitTests/PresetLevelTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class PresetLevelTest : public UnitTest
1313

1414
std::unique_ptr<ChowtapeModelAudioProcessor> proc {
1515
dynamic_cast<ChowtapeModelAudioProcessor*> (createPluginFilterOfType (
16-
AudioProcessor::WrapperType::wrapperType_Standalone))
16+
AudioProcessor::WrapperType::wrapperType_Standalone).release())
1717
};
1818

1919
static constexpr double sampleRate = 48000.0;

0 commit comments

Comments
 (0)