Skip to content

Commit 048b55c

Browse files
committed
Fix another C++11 issue tripping up sonar
1 parent e790561 commit 048b55c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/internals/general.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ int counting_helper::active = 0;
190190

191191
TEST(MaybeOwnedTest, NonOwningPointer) {
192192
ASSERT_EQ(counting_helper::active, 0);
193-
auto instance = std::make_unique<counting_helper>(42);
193+
auto instance = cpptrace::detail::make_unique<counting_helper>(42);
194194
EXPECT_EQ(counting_helper::active, 1);
195195
{
196196
maybe_owned<counting_helper> non_owning(instance.get());
@@ -204,7 +204,7 @@ TEST(MaybeOwnedTest, NonOwningPointer) {
204204

205205
TEST(MaybeOwnedTest, OwningPointer) {
206206
ASSERT_EQ(counting_helper::active, 0);
207-
auto instance = std::make_unique<counting_helper>(42);
207+
auto instance = cpptrace::detail::make_unique<counting_helper>(42);
208208
EXPECT_EQ(counting_helper::active, 1);
209209
{
210210
maybe_owned<counting_helper> non_owning(std::move(instance));

0 commit comments

Comments
 (0)