Skip to content

Commit bc29411

Browse files
authored
ofAppRunner::ofRunApp const and & (#6914)
#changelog #core
1 parent 176d96c commit bc29411

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libs/openFrameworks/app/ofAppRunner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ int ofRunApp(shared_ptr<ofBaseApp> && app){
193193
}
194194

195195
//--------------------------------------
196-
void ofRunApp(shared_ptr<ofAppBaseWindow> window, shared_ptr<ofBaseApp> && app){
196+
void ofRunApp(const shared_ptr<ofAppBaseWindow> & window, shared_ptr<ofBaseApp> && app){
197197
mainLoop()->run(window, std::move(app));
198198
}
199199

libs/openFrameworks/app/ofAppRunner.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void ofSetupOpenGL(Window * windowPtr, int w, int h, ofWindowMode screenMode){
4646

4747
int ofRunApp(std::shared_ptr<ofBaseApp> && OFSA);
4848
int ofRunApp(ofBaseApp * OFSA = nullptr); // will be deprecated
49-
void ofRunApp(std::shared_ptr<ofAppBaseWindow> window, std::shared_ptr<ofBaseApp> && app);
49+
void ofRunApp(const std::shared_ptr<ofAppBaseWindow> & window, std::shared_ptr<ofBaseApp> && app);
5050
int ofRunMainLoop();
5151

5252

0 commit comments

Comments
 (0)