| 94 | } |
| 95 | |
| 96 | void BreakpointsModel::enable( const std::string& filePath, |
| 97 | const SourceBreakpointStateful& breakpoint, bool enable ) { |
| 98 | Lock l( mResourceLock ); |
| 99 | auto found = std::find( mBreakpoints.begin(), mBreakpoints.end(), |
| 100 | std::make_pair( filePath, breakpoint ) ); |
| 101 | if ( found != mBreakpoints.end() ) { |
| 102 | found->second.enabled = enable; |
| 103 | invalidate( Model::UpdateFlag::DontInvalidateIndexes ); |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | void BreakpointsModel::move( const std::string& doc, Int64 fromLine, Int64 toLine, |
| 108 | Int64 numLines ) { |
no test coverage detected