Skip to content

Commit

Permalink
Fix compile issue on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohns committed Jun 15, 2024
1 parent be819d3 commit 44cc7e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/EnergyCalTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ namespace
assert( specfile );
InterSpec * const viewer = InterSpec::instance();
assert( viewer );
if( !viewer )
return;

const shared_ptr<SpecMeas> specfile_now = viewer ? viewer->measurment( type ) : nullptr;
assert( specfile == specfile_now );
if( !specfile || (specfile != specfile_now) )
Expand Down
2 changes: 0 additions & 2 deletions src/PeakInfoDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,6 @@ void PeakInfoDisplay::createNewPeak()
auto closer = wApp->bind( boost::bind( &AuxWindow::deleteAuxWindow, window ) );
undoManager->addUndoRedoStep( closer, nullptr , "Open add peak dialog." );
}//if( undoManager )

return window;
}//createNewPeak()


Expand Down

0 comments on commit 44cc7e7

Please sign in to comment.