Add a couple of TODOs for SCH_COMMIT.

This commit is contained in:
Jeff Young 2023-07-07 15:40:15 +01:00
parent 922f7128a9
commit 534a3efce1
1 changed files with 3 additions and 1 deletions

View File

@ -361,6 +361,8 @@ int SCH_FIND_REPLACE_TOOL::ReplaceAndFindNext( const TOOL_EVENT& aEvent )
if( data.findString.IsEmpty() )
return FindAndReplace( ACTIONS::find.MakeEvent() );
// TODO: move to SCH_COMMIT....
if( item && HasMatch() )
{
SCH_ITEM* sch_item = static_cast<SCH_ITEM*>( item );
@ -397,7 +399,7 @@ int SCH_FIND_REPLACE_TOOL::ReplaceAll( const TOOL_EVENT& aEvent )
{
}
bool modified = false;
bool modified = false; // TODO: move to SCH_COMMIT....
if( data.findString.IsEmpty() )
return FindAndReplace( ACTIONS::find.MakeEvent() );