8000 Minor changes to Kaleido to use make_shared · johnmanong/Cinder@c894b2a · GitHub
[go: up one dir, main page]

Skip to content

Commit c894b2a

Browse files
committed
Minor changes to Kaleido to use make_shared
1 parent d6af4ee commit c894b2a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

samples/Kaleidoscope/src/InstagramStream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ mClientId( clientId )
7979
}
8080

8181
void InstagramStream::startThread(string url){
82-
mThread = shared_ptr<thread>( new thread( bind( &InstagramStream::serviceGrams, this, url ) ) );
82+
mThread = make_shared<thread>( bind( &InstagramStream::serviceGrams, this, url ) );
8383
}
8484

8585
InstagramStream::~InstagramStream()

samples/Kaleidoscope/src/InstascopeApp.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ void InstascopeApp::setup()
8686
mTextRibbon = new TextRibbon();
8787

8888
// Popular images stream
89-
mInstaStream = shared_ptr<InstagramStream>( new InstagramStream( CLIENT_ID) );
89+
mInstaStream = make_shared<InstagramStream>( CLIENT_ID );
9090
// Image stream of a particular tag
91-
// mInstaStream = shared_ptr<InstagramStream>( new InstagramStream( TAG, CLIENT_ID) );
91+
// mInstaStream = make_shared<InstagramStream>( TAG, CLIENT_ID );
9292
// Image stream in a particular area
93- // mInstaStream = shared_ptr<InstagramStream>( new InstagramStream( Vec2f(40.720467,-74.00603), 5000, CLIENT_ID) );
93+
// mInstaStream = make_shared<InstagramStream>( Vec2f(40.720467,-74.00603), 5000, CLIENT_ID );
9494

9595
continueCycle();
9696
}

0 commit comments

Comments
 (0)
0