mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-01-31 13:31:08 +00:00
GP-0 corrected latent issue in AbstractEditFunctionSignatureDialog
This commit is contained in:
parent
703043dbf2
commit
f30b37bc05
@ -179,16 +179,12 @@ public abstract class AbstractEditFunctionSignatureDialog extends DialogComponen
|
||||
mainPanel.add(buildSignaturePanel());
|
||||
mainPanel.add(buildAttributePanel());
|
||||
if (allowCallFixup) {
|
||||
installCallFixupWidget(mainPanel);
|
||||
JPanel callFixupPanel = buildCallFixupPanel();
|
||||
mainPanel.add(callFixupPanel != null ? callFixupPanel : buildSpacerPanel());
|
||||
}
|
||||
return mainPanel;
|
||||
}
|
||||
|
||||
private void installCallFixupWidget(JPanel parentPanel) {
|
||||
JPanel callFixupPanel = buildCallFixupPanel();
|
||||
parentPanel.add(callFixupPanel != null ? callFixupPanel : buildSpacerPanel());
|
||||
}
|
||||
|
||||
private JPanel buildSignaturePanel() {
|
||||
JPanel signaturePanel = new JPanel();
|
||||
signaturePanel.setLayout(new BoxLayout(signaturePanel, BoxLayout.X_AXIS));
|
||||
@ -252,10 +248,6 @@ public abstract class AbstractEditFunctionSignatureDialog extends DialogComponen
|
||||
|
||||
private JPanel buildCallFixupPanel() {
|
||||
|
||||
if (allowCallFixup) {
|
||||
return null;
|
||||
}
|
||||
|
||||
JPanel callFixupPanel = new JPanel();
|
||||
callFixupPanel.setLayout(new BoxLayout(callFixupPanel, BoxLayout.X_AXIS));
|
||||
|
||||
|
@ -106,7 +106,7 @@ public class FunctionTestDouble implements Function {
|
||||
|
||||
@Override
|
||||
public String getCallFixup() {
|
||||
throw new UnsupportedOperationException();
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user