mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-07 05:56:36 +03:00
Lambda captures clean up, plus other minor clean ups.
This commit is contained in:
@@ -487,7 +487,7 @@ void StatusBuildOutputController::createContainer() {
|
||||
if ( fileInfo.exists() && fileInfo.isRegularFile() ) {
|
||||
mApp->loadFileFromPath(
|
||||
path, true, nullptr,
|
||||
[&, lineNum, colNum]( UICodeEditor*, const std::string& ) {
|
||||
[this, lineNum, colNum]( UICodeEditor*, const std::string& ) {
|
||||
onLoadDone( lineNum, colNum );
|
||||
} );
|
||||
} else {
|
||||
@@ -503,7 +503,7 @@ void StatusBuildOutputController::createContainer() {
|
||||
UITab* tab = mSplitter->isDocumentOpen( path );
|
||||
if ( !tab ) {
|
||||
mApp->loadFileFromPath( path, true, nullptr,
|
||||
[&, lineNum, colNum]( auto, auto ) {
|
||||
[this, lineNum, colNum]( auto, auto ) {
|
||||
onLoadDone( lineNum, colNum );
|
||||
} );
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user