summaryrefslogtreecommitdiff
path: root/UMain.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2009-11-17 11:06:15 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2009-11-17 11:06:15 +0100
commitcb5cb517c068a470662bd1d08bef61265376c802 (patch)
treec59c2de9dce9b7b3b064e14f918fa4d53a691c9a /UMain.pas
parent86431176b9e030b8296718feb2f5d837c4f83b63 (diff)
downloadtuxcmd-cb5cb517c068a470662bd1d08bef61265376c802.tar.xz
Remove unneeded casts
Diffstat (limited to 'UMain.pas')
-rw-r--r--UMain.pas4
1 files changed, 2 insertions, 2 deletions
diff --git a/UMain.pas b/UMain.pas
index 42a19a3..d80bafd 100644
--- a/UMain.pas
+++ b/UMain.pas
@@ -6099,7 +6099,7 @@ begin
if ConfWarnUnsavedConnection then begin
DontShowAgain := False;
- res := MessageBoxShowOnce(PGtkWindow(FWidget), PChar(Format(LANGTheActiveConnectionHasNotBeenSaved, [Engine.GetPathURI])), LANGDontShowAgain, DontShowAgain, Buttons, mbWarning, mbNo, CancelButton);
+ res := MessageBoxShowOnce(PGtkWindow(FWidget), Format(LANGTheActiveConnectionHasNotBeenSaved, [Engine.GetPathURI]), LANGDontShowAgain, DontShowAgain, Buttons, mbWarning, mbNo, CancelButton);
if DontShowAgain then begin
ConfWarnUnsavedConnection := False;
WriteMainGUISettings;
@@ -6569,7 +6569,7 @@ begin
if tmp = nil then begin
err := errno;
DebugMsg(['(EE) ExtractFromArchive: Couldn''t create temporary directory: ', strerror(err)]);
- Application.MessageBox(PChar(Format(LANGHandleRunFromArchive_CouldntCreateTemporaryDirectory, [s, string(strerror(err))])), [mbOK], mbError, mbOK, mbOK);
+ Application.MessageBox(Format(LANGHandleRunFromArchive_CouldntCreateTemporaryDirectory, [s, string(strerror(err))]), [mbOK], mbError, mbOK, mbOK);
Result := False;
Exit;
end;