Skip to content
Browse files

Minor changes to Kaleido to use make_shared

  • Loading branch information...
1 parent d6af4ee commit c894b2a81eb4d859070b177f989f60b470e92b8c @andrewfb andrewfb committed
Showing with 4 additions and 4 deletions.
  1. +1 −1 samples/Kaleidoscope/src/InstagramStream.cpp
  2. +3 −3 samples/Kaleidoscope/src/InstascopeApp.cpp
View
2 samples/Kaleidoscope/src/InstagramStream.cpp
@@ -79,7 +79,7 @@ mClientId( clientId )
}
void InstagramStream::startThread(string url){
- mThread = shared_ptr<thread>( new thread( bind( &InstagramStream::serviceGrams, this, url ) ) );
+ mThread = make_shared<thread>( bind( &InstagramStream::serviceGrams, this, url ) );
}
InstagramStream::~InstagramStream()
View
6 samples/Kaleidoscope/src/InstascopeApp.cpp
@@ -86,11 +86,11 @@ void InstascopeApp::setup()
mTextRibbon = new TextRibbon();
// Popular images stream
- mInstaStream = shared_ptr<InstagramStream>( new InstagramStream( CLIENT_ID) );
+ mInstaStream = make_shared<InstagramStream>( CLIENT_ID );
// Image stream of a particular tag
- // mInstaStream = shared_ptr<InstagramStream>( new InstagramStream( TAG, CLIENT_ID) );
+ // mInstaStream = make_shared<InstagramStream>( TAG, CLIENT_ID );
// Image stream in a particular area
- // mInstaStream = shared_ptr<InstagramStream>( new InstagramStream( Vec2f(40.720467,-74.00603), 5000, CLIENT_ID) );
+ // mInstaStream = make_shared<InstagramStream>( Vec2f(40.720467,-74.00603), 5000, CLIENT_ID );
continueCycle();
}

0 comments on commit c894b2a

Please sign in to comment.
Something went wrong with that request. Please try again.