Skip to content

Commit a8dcf93

Browse files
authored
Update ofxUnitTests.h -- use make_shared (#7659)
1 parent 11eff5e commit a8dcf93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

addons/ofxUnitTests/src/ofxUnitTests.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class ofxUnitTestsApp: public ofBaseApp{
276276
int numTestsTotal = 0;
277277
int numTestsPassed = 0;
278278
int numTestsFailed = 0;
279-
std::shared_ptr<ofColorsLoggerChannel> logger{new ofColorsLoggerChannel};
279+
std::shared_ptr<ofColorsLoggerChannel> logger = std::make_shared<ofColorsLoggerChannel>();
280280
};
281281

282282
#define ofxTest(x, ...) this->do_test(x,__VA_ARGS__,__FILE__,__LINE__)

0 commit comments

Comments
 (0)