mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-14 10:39:37 +02:00
ide: fixed compile
This commit is contained in:
parent
ae48e9841e
commit
8ec63ba013
@ -450,13 +450,14 @@ begin
|
||||
OldChange:=LazarusIDE.OpenEditorsOnCodeToolChange;
|
||||
LazarusIDE.OpenEditorsOnCodeToolChange:=true;
|
||||
try
|
||||
isConflicted:=false; // todo: check for conflicts and show user list
|
||||
if not CodeToolBoss.RenameIdentifier(PascalReferences,
|
||||
Identifier, Options.RenameTo, DeclCode, @DeclarationCaretXY, isConflicted)
|
||||
Identifier, Options.RenameTo, DeclCode, @DeclarationCaretXY)
|
||||
then begin
|
||||
if isConflicted then
|
||||
IDEMessageDialog(lisRenamingConflict,
|
||||
Format(lisIdentifierWasAlreadyUsed,[Options.RenameTo]),
|
||||
mtError,[mbOK])
|
||||
IDEMessageDialog(lisRenamingConflict,
|
||||
Format(lisIdentifierWasAlreadyUsed,[Options.RenameTo]),
|
||||
mtError,[mbOK])
|
||||
else
|
||||
LazarusIDE.DoJumpToCodeToolBossError;
|
||||
debugln('Error: (lazarus) DoFindRenameIdentifier unable to commit');
|
||||
|
@ -8563,7 +8563,7 @@ var
|
||||
PascalReferences: TAVLTree;
|
||||
i: Integer;
|
||||
MsgResult: TModalResult;
|
||||
OnlyEditorFiles, isConflicted: Boolean;
|
||||
OnlyEditorFiles: Boolean;
|
||||
aFilename: String;
|
||||
begin
|
||||
// compare unitnames case sensitive, maybe only the case changed
|
||||
@ -8653,7 +8653,7 @@ begin
|
||||
end;
|
||||
end;
|
||||
if not CodeToolBoss.RenameIdentifier(PascalReferences,OldUnitName,NewUnitName,
|
||||
Nil,Nil,isConflicted) then
|
||||
Nil,Nil) then
|
||||
begin
|
||||
if (not IgnoreErrors) and (not Quiet) then
|
||||
MainIDE.DoJumpToCodeToolBossError;
|
||||
|
Loading…
Reference in New Issue
Block a user