diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-11-21 12:10:23 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-11-21 12:10:23 +0200 |
commit | d159ed3256f685ab0e2b5251ecb95e96fee26d02 (patch) | |
tree | ff29c75db580128fa75ed2b1c2b3e2338d70f1d9 /src | |
parent | c6c0e9dc10610afeb33f56fa0796c1b31319688e (diff) | |
download | fpGUI-d159ed3256f685ab0e2b5251ecb95e96fee26d02.tar.xz |
Fixed the parameter modifier of TfpgStyleManager.AssignStyleTypes()
We can now pass in the Lines property of a Memo or Combobox directly,
without the need of an extra local TStrings variable.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/fpg_stylemanager.pas | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/fpg_stylemanager.pas b/src/gui/fpg_stylemanager.pas index 62e04a35..de49d5a7 100644 --- a/src/gui/fpg_stylemanager.pas +++ b/src/gui/fpg_stylemanager.pas @@ -66,7 +66,7 @@ type function CreateInstance(const AStyleName: string): TfpgStyle; overload; function CreateInstance: TfpgStyle; overload; procedure FreeStyleInstance; - procedure AssignStyleTypes(var AStrings: TStrings); + procedure AssignStyleTypes(const AStrings: TStrings); end; @@ -194,7 +194,7 @@ end; { Assign the registered list of style names to a StringList. This can be used to populate a combobox with the registered style class types. } -procedure TfpgStyleManager.AssignStyleTypes(var AStrings: TStrings); +procedure TfpgStyleManager.AssignStyleTypes(const AStrings: TStrings); var i: integer; begin |