summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authormichael <michael@3ad0048d-3df7-0310-abae-a5850022a9f2>2010-07-30 09:26:21 +0000
committermichael <michael@3ad0048d-3df7-0310-abae-a5850022a9f2>2010-07-30 09:26:21 +0000
commitdea7b6a726a63e4ac0fcada4f2d1b0907707116f (patch)
tree201001cbb9c6a274176274cd077ac2a6e23d74a6 /packages
parent637f51b489f3dcce701de236ffef8dfaf087c0d8 (diff)
downloadfpc-dea7b6a726a63e4ac0fcada4f2d1b0907707116f.tar.gz
* Patch from Luiz Americo to use const string params in Log call
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@15665 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages')
-rw-r--r--packages/fcl-base/src/custapp.pp4
-rw-r--r--packages/fcl-extra/src/daemonapp.pp8
-rw-r--r--packages/fcl-web/src/base/custweb.pp4
3 files changed, 8 insertions, 8 deletions
diff --git a/packages/fcl-base/src/custapp.pp b/packages/fcl-base/src/custapp.pp
index 62f2fb69eb..a5ce5b0a60 100644
--- a/packages/fcl-base/src/custapp.pp
+++ b/packages/fcl-base/src/custapp.pp
@@ -63,7 +63,7 @@ Type
Function CheckOptions(Const ShortOptions : String; Const LongOpts : String) : String;
Procedure GetEnvironmentList(List : TStrings;NamesOnly : Boolean);
Procedure GetEnvironmentList(List : TStrings);
- Procedure Log(EventType : TEventType; Msg : String); virtual;
+ Procedure Log(EventType : TEventType; const Msg : String); virtual;
// Delphi properties
property ExeName: string read GetExeName;
property HelpFile: string read FHelpFile write FHelpFile;
@@ -223,7 +223,7 @@ begin
// Do nothing. Override in descendent classes.
end;
-Procedure TCustomApplication.Log(EventType : TEventType; Msg : String);
+Procedure TCustomApplication.Log(EventType : TEventType; const Msg : String);
begin
// Do nothing. Override in descendent classes.
diff --git a/packages/fcl-extra/src/daemonapp.pp b/packages/fcl-extra/src/daemonapp.pp
index e367f6b4b9..18684346e2 100644
--- a/packages/fcl-extra/src/daemonapp.pp
+++ b/packages/fcl-extra/src/daemonapp.pp
@@ -57,7 +57,7 @@ Type
Function UnInstall: boolean; virtual;
Function HandleCustomCode(ACode : DWord) : Boolean; Virtual;
Public
- Procedure LogMessage(Msg : String);
+ Procedure LogMessage(const Msg : String);
Procedure ReportStatus;
// Filled in at runtime by controller
@@ -370,7 +370,7 @@ Type
procedure UnInstallDaemons;
procedure ShowHelp;
procedure CreateForm(InstanceClass: TComponentClass; var Reference); virtual;
- procedure Log(EventType: TEventType; Msg: String); override;
+ procedure Log(EventType: TEventType; const Msg: String); override;
Property OnRun : TNotifyEvent Read FOnRun Write FOnRun;
Property EventLog : TEventLog Read GetEventLog;
Property GUIMainLoop : TGuiLoopEvent Read FGUIMainLoop Write FGuiMainLoop;
@@ -652,7 +652,7 @@ end;
-procedure TCustomDaemon.LogMessage(Msg: String);
+procedure TCustomDaemon.LogMessage(const Msg: String);
begin
Application.Log(etInfo,Msg);
end;
@@ -848,7 +848,7 @@ begin
end;
end;
-procedure TCustomDaemonApplication.Log(EventType: TEventType; Msg: String);
+procedure TCustomDaemonApplication.Log(EventType: TEventType; const Msg: String);
begin
EventLog.Log(EventType,Msg);
end;
diff --git a/packages/fcl-web/src/base/custweb.pp b/packages/fcl-web/src/base/custweb.pp
index 048b3fde1d..0699be6c07 100644
--- a/packages/fcl-web/src/base/custweb.pp
+++ b/packages/fcl-web/src/base/custweb.pp
@@ -162,7 +162,7 @@ Type
destructor Destroy; override;
Procedure CreateForm(AClass : TComponentClass; out Reference);
Procedure Initialize; override;
- Procedure Log(EventType: TEventType; Msg: String); override;
+ Procedure Log(EventType: TEventType; const Msg: String); override;
Property HandleGetOnPost : Boolean Read GetHandleGetOnPost Write SetHandleGetOnPost;
Property RedirectOnError : boolean Read GetRedirectOnError Write SetRedirectOnError;
@@ -573,7 +573,7 @@ begin
Inherited;
end;
-procedure TCustomWebApplication.Log(EventType: TEventType; Msg: String);
+procedure TCustomWebApplication.Log(EventType: TEventType; const Msg: String);
begin
EventLog.log(EventType,Msg);
end;